-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
component: adminAdministration related functionalityAdministration related functionalityenhancementNew feature or requestNew feature or request
Description
Feature Overview
Is your feature request related to a problem? Please describe.
As an admin usher user, I would like to have APIs available to manage Roles. Some of the APIs are already implemented, this issue should complete the missing APIs.
API Design
| Status | URL | Auth | Params | Notes |
|---|---|---|---|---|
| TODO | PATCH /roles/:role_key |
bearerAdminAuth | name and/or description: body | Update Role attributes |
| TODO | DELETE /roles/:role_key |
bearerAdminAuth | role key: path, required | Delete a Role |
Implementation Notes
- The source files should be placed in the
src/api_endpoints/rolesfolder. - Move the existing
endpoint_roles.jsfile from theapi_endpointsfolder toapi_endpoints/rolesand also rename the file. This will also require updating the open api specx-swagger-router-controller. - Refactor the
createRolefunction to handle and return errors like all newer APIs.
Questions
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: adminAdministration related functionalityAdministration related functionalityenhancementNew feature or requestNew feature or request