We need to edit current endpoints request payloads and responses to match the currect OpenAPI spec (repo) as of March 18th 2024.
Endpoints changes
remove entitlements endpoints with DELETE /.../{e_id} where e_id is the entitlement ID
remove all DELETE operations that perform the removal entities added with PATCH operations (so basically merge PATCH and cooresponding DELETE operations)
Response payload changes
all detail endpoints now return the single entity that has been queried
all POST endpoints now return the single created entity
all PUT endpoints now return the single updated entity
Request payload changes
All PATCH endpoints must handle the following formats, examples:
Description
We need to edit current endpoints request payloads and responses to match the currect OpenAPI spec (repo) as of March 18th 2024.
Endpoints changes
DELETE /.../{e_id}
wheree_id
is the entitlement IDResponse payload changes
POST
endpoints now return the single created entityPUT
endpoints now return the single updated entityRequest payload changes
All
PATCH
endpoints must handle the following formats, examples:PATCH /identity/{id}/groups
PATCH /identity/{id}/roles
PATCH /identity/{id}/entitlements
{ "patches": [ { "op": "remove", "role": "role-A", } ] }
{ "patches": [ { "op": "add", "entitlement": { "entity_type": "entity-type", "entity_name": "entity-name", "entitlement_type": "entitlement-type" } } ] }