Flagged
Done
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Chongsun Ahn
Chongsun AhnReporter
Chongsun Ahn
Chongsun AhnOriginal estimate
1h
Time tracking
Components
Sprint
Add sprint
Fix versions
Priority
Time Assistant
Time Assistant
Created January 27, 2017 at 12:31 AM
Updated February 7, 2017 at 7:50 AM
Resolved February 3, 2017 at 3:50 PM
The Requisition Service needs to way to get a list of approvers at a certain supervisory node and program. This is something it needs from the Reference Data Service. The endpoint would answer the question: at this supervisory node, what are the users that have this right for this program?
The endpoint would probably be under the supervisory node resource, so something like:
/api/supervisoryNodes/id/supervisedUsers?rightId=<rightId>&programId=<programId>
It would use RBAC to answer this question.
For QA: please let me know if you have any questions on how to test this ticket. Attached is a CSV of what user is assigned to what role by supervisory node and program. Also, you can see the rights assigned to a role here: https://github.com/OpenLMIS/openlmis-referencedata/tree/master/demo-data#roles-users-and-rights
Acceptance Criteria
Create a new endpoint as described above
Add code to do this searching
Update RAML and add integration tests
To use this endpoint, you need the USERS_MANAGE right; otherwise you should get a 403 Forbidden HTTP code.