Rest Roles » History » Revision 2
Revision 1 (Jean-Philippe Lang, 2012-02-06 11:16) → Revision 2/4 (Jean-Philippe Lang, 2012-10-17 22:27)
h1. Roles
{{>toc}}
h2. /roles.:format
h3. GET
Returns the list of roles.
+Examples+:
<pre>
GET /roles.xml
</pre>
+Response+:
<pre>
<?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>
</pre>
h2. /roles/[id].:format
h3. GET
Returns the list of permissions for a given role (version:2.2.0).
+Examples+:
<pre>
GET /roles/5.xml
</pre>
+Response+:
<pre>
<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>
</pre>