Rest Roles » History » Revision 3
Revision 2 (Jean-Philippe Lang, 2012-10-17 22:27) → Revision 3/4 (Go MAEDA, 2018-12-12 07:15)
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><code class="xml"> <pre> <role> <id>5</id> <name>Reporter</name> <assignable>true</assignable> <issues_visibility>default</issues_visibility> <time_entries_visibility>all</time_entries_visibility> <users_visibility>all</users_visibility> <permissions type="array"> <permission>view_issues</permission> <permission>add_issues</permission> <permission>add_issue_notes</permission> ... </permissions> </role> </code></pre> </pre>