Update 'Documentation'

Konstantinos Triantafyllou 2021-12-20 18:17:20 +01:00
parent 46287455f7
commit 8a52be9a9a
1 changed files with 1 additions and 1 deletions

@ -52,7 +52,7 @@ Authority format: (TYPE)\_(ID)
| Method | Path | Path Variables | Params | Description
| -------- | -------- | -------- |-------- | -------- |
| DELETE | /{type}/{id} | **type**: Type of Entity, **id**: ID of Entity | **email**: Email of user (optional) | Remove Authority (TYPE)\_(ID) from user(s) with this email or logged in user, if email isn't provided.
| DELETE | /{type}/{id} | **type**: Type of Entity, **id**: ID of Entity | **email**: Email of user (optional), **force**: if true and user is admin of this enity then both roles will be removed, default: false | Remove Authority (TYPE)\_(ID) from user(s) with this email or logged in user, if email isn't provided.
| GET | /{type}/{id} | **type**: Type of Entity, **id**: ID of Entity |**email**: Set to false to hide email information, default: true, **name**: Set to false to hide name information, default: true | Retrieve information of users with Authority (TYPE)_(ID).
| POST | /{type}/{id} | **type**: Type of Entity, **id**: ID of Entity | **email**: Email of user, **force**: if true and Authority (TYPE)\_(ID) doesn't exist, the Authority will be created, default: false | Assign Authority CURATOR\_(TYPE) to user(s) with this email or logged in user, if email isn't provided.
| POST | /{type}/{id} /create | **type**: Type of Entity, **id**: ID of Entity | **description**: Desciption of Authority (TYPE)\_(ID) (optional) | Create Authority (TYPE)_(ID), along with (TYPE)\_(ID)\_(MANAGER).