Context:
We are going to have a multi-select for adding users to the collection but the current endpoint only supports adding one user at a time.
AT:
- Change the endpoint to adding roles to entry (POST /api/collection/:id/role) to accept an array of roles instead of one role
- All the users that are listed in the body will be added to the collection
- If I add multiple roles A and B and B already exists none of the roles is added
- If I add multiple roles A and B and B has already been added then there should be a conflict error
- the rest API body is adjusted to the following:
[ { "identity": { "id": "kermit", "type": "user" // or group or null }, "role": "manager" // or editor, viewer }, ... ]
- the return of the identity id is removed
- the response code if everything went fine is changed from 200 to 204 (no content)
- The rest API documentation is adjusted to the new endpoint
This is the controller panel for Smart Panels app
- is related to
-
OPT-4427 Replace typeahead with multiselect for adding roles to collection
- Done