操作
角色¶
/roles.:format¶
GET¶
返回角色列表。
示例:
GET /roles.xml
响应:
<?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¶
返回给定角色的权限列表(2.2.0)。
示例:
GET /roles/5.xml
响应:
<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>