Actions
Rest Roles » History » Revision 2
« Previous |
Revision 2/4
(diff)
| Next »
Jean-Philippe Lang, 2012-10-17 22:27
Roles¶
- Table of contents
- Roles
/roles.:format¶
GET¶
Returns the list of roles.
Examples:
GET /roles.xml
Response:
<?xml version="1.0" encoding="UTF-8"?> <roles type="array"> <role> <id>1</id> <name>Manager</name> </role> <role> <id>2</id> <name>Developer</name> </role> </roles>
/roles/[id].:format¶
GET¶
Returns the list of permissions for a given role (2.2.0).
Examples:
GET /roles/5.xml
Response:
<role> <id>5</id> <name>Reporter</name> <permissions type="array"> <permission>view_issues</permission> <permission>add_issues</permission> <permission>add_issue_notes</permission> ... </permissions> </role>
Updated by Jean-Philippe Lang over 12 years ago · 2 revisions