Give the ability to the webservice to notice if an attribute is monovalued or multivalued
Hello @tdockx
I modified the rest.php so that it will add to the types endpoint a ""
or []
for each attribute.
It can help to notice the type without check FD interface.
Exemple of the output
$ C /types/user/supannAccount
{
"sections": {
"identity": {
"name": "Identity",
"attrs": {
"supannCivilite": "",
"supannAliasLogin": "",
"eduPersonPrincipalName": "",
"eduPersonNickname": "",
"supannRefId": []
}
},
"contact": {
"name": "Contact",
"attrs": {
"supannAutreTelephone": [],
"supannTelephonePrive": [],
"supannAutreMail": [],
"supannMailPerso": [],
"supannMailPrive": [],
"supannAdressePostalePrivee": [],
"supannListeRouge": "",
"mailForwardingAddress": ""
}
},
"affectation": {
"name": "Assignment",
"attrs": {
"supannEntiteAffectationPrincipale": "",
"supannEntiteAffectation": [],
"supannTypeEntiteAffectation": []
}
},
"affiliation": {
"name": "Affiliation",
"attrs": {
"eduPersonPrimaryAffiliation": "",
"eduPersonAffiliation": [],
"supannEtablissement": [],
"supannParrainDN": ""
}
},
"student": {
"name": "Student profile",
"attrs": {
"supannCodeINE": "",
"supannEtuId": ""
}
},
"student2": {
"name": "Student registrations",
"class": [
"fullwidth"
],
"template": "/usr/share/fusiondirectory/plugins/personal/supann/student_subscription.tpl",
"attrs": {
"supannEtuAnneeInscription": "",
"supannEtuRegimeInscription": "",
"supannEtuSecteurDisciplinaire": "",
"supannEtuTypeDiplome": "",
"supannEtuCursusAnnee": "",
"supannEtuDiplome": "",
"supannEtuEtape": "",
"supannEtuElementPedagogique": "",
"supannEtuInscription": ""
}
},
"personnal": {
"name": "Personal profile",
"attrs": {
"supannEmpId": "",
"supannEmpCorps": "",
"supannActivite": []
}
},
"personnal2": {
"name": "Roles",
"class": [
"fullwidth"
],
"attrs": {
"supannRoleGenerique": "",
"supannRoleEntite": ""
}
},
"consentement": {
"name": "Consent",
"class": [
"fullwidth"
],
"attrs": {
"supannConsentement": ""
}
}
},
"sections_order": [
"identity",
"contact",
"affectation",
"affiliation",
"student",
"student2",
"personnal",
"personnal2",
"consentement"
]
}