You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2018/05/03 16:57:35 UTC

[GitHub] mitchell852 opened a new issue #2220: When fetching a user thru the API, capabilities should be added to the response

mitchell852 opened a new issue #2220: When fetching a user thru the API, capabilities should be added to the response
URL: https://github.com/apache/incubator-trafficcontrol/issues/2220
 
 
   when fetching a user object via one of these routes:
   
   GET /api/$version/user/current
   GET /api/$version/users
   GET /api/$version/users/:id
   
   the response should include the capabilities of the user in addition to the role. for example:
   
   {
     role: 4,
     capabilities: [ 'asn-read', 'asn-write' ]
   }
   
   otherwise, 2 calls have to be made to fetch the capabilities of a user
   
   GET /api/$version/user/current
   GET /api/$version/roles/user.roleID from previous call

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services