organizations
Récupérer toutes les organisations
Changed onCe endpoint permet de récupérer la liste de toutes les organisations.
get/api/v2/organizations
Request
- The document declares no server URL.
- Auth: one of:
- OAuth 2 (authorization code, authorization URL http://localhost:8082/realms/referentiel-applications/protocol/openid-connect/auth, token URL http://localhost:8082/realms/referentiel-applications/protocol/openid-connect/token)
- API key in header x-refapp-token
Query parameters
pagenumber
Numéro de page
pageSizenumber
Example:50
Nombre de résultats par page, 0 pour supprimer la pagination
sortBystring
Example:label
Champ utilisé pour le tri
order'asc' | 'desc'
Example:asc
Ordre de tri
withAncestorsboolean
Renvoi les organisations parentes de chaque organisation
usedOnlyboolean
Renvoi uniquement les organisations utilisées (qui ont des acteurs ou des utilisateurs)
idsstring[]
searchstring
Response
Liste des organisations
Example response
{
"results": [
{
"id": "f09ed26a-8415-476a-be3b-ada479291c34",
"path": "Direction de la transformation numérique",
"sigle": "dtnum",
"parentId": "f09ed26a-8415-476a-be3b-ada479291c34",
"businessDivisionId": "f09ed26a-8415-476a-be3b-ada479291c34",
"businessDivision": {
"label": "farm"
},
"maiaReferences": [
{
"id": "f09ed26a-8415-476a-be3b-ada479291c34",
"maiaRef": "MI/DNUM/SDID",
"organizationId": "f09ed26a-8415-476a-be3b-ada479291c34"
}
]
}
],
"total": 100
}Changes
- info
added the optional property
//to the response with the status
- info