-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add App Roles (Active app) not providing expected response #573
Comments
While adding roles to the active apps, if the api response for GET: /api/administration/user/owncompany/roles/apps/${appId} Tested in dev for appId: a376f2c7-c5c9-46f6-96c8-4bafee3c2183 |
As discussed with @jjeroch created an endpoint GET: /api/apps/AppChange/{appId}/roles to fetch the active app userRoles details. |
* create endpoint to fetch activeAppRoleDetails Ref : #573 --------- Co-authored-by: Norbert Truchsess <[email protected]>
SucessFully Tested in dev |
While adding roles to an active apps via the API call
POST:/api/apps/AppChange/${appId}/role/activeapp
the api response returns "success"
However if we now call the appRoles with
GET: /api/administration/user/owncompany/roles/apps/${appId}
the response is empty
Check needed.
Tests executed on
dev
Example app ID:
a376f2c7-c5c9-46f6-96c8-4bafee3c2183
Please note: while analysing and fixing the issue; we should consider to move this endpoint to the app controller since this is connected to "apps". As soon as analysis of the issue is done; we should quickly align on the move of the endpoint
After analysing the ticket with Prasanna the following decision was made:
For the app provider an endpoint is needed to fetch the roles of an active app.
Till now we used an endpoint from administration service; but to ensure that we have a clear differenciation of the endpoints and services, we decided to create a own endpoint inside the app services.
Endpoint:
/api/apps/{appId}/roles
Method: `GET``
Optional parameter: languagetag
Response Body
Validation: only active apps should be callable.
The endpoint provides requesters an overview of available app roles of active apps.
The text was updated successfully, but these errors were encountered: