Rest Roles » History » Version 3
Go MAEDA, 2018-12-12 07:15
Added new elements introduced in Redmine 4.0 (#28191)
1 | 1 | Jean-Philippe Lang | h1. Roles |
---|---|---|---|
2 | |||
3 | {{>toc}} |
||
4 | |||
5 | h2. /roles.:format |
||
6 | |||
7 | h3. GET |
||
8 | |||
9 | Returns the list of roles. |
||
10 | |||
11 | +Examples+: |
||
12 | |||
13 | <pre> |
||
14 | GET /roles.xml |
||
15 | </pre> |
||
16 | |||
17 | +Response+: |
||
18 | |||
19 | <pre> |
||
20 | <?xml version="1.0" encoding="UTF-8"?> |
||
21 | <roles type="array"> |
||
22 | <role> |
||
23 | <id>1</id> |
||
24 | <name>Manager</name> |
||
25 | </role> |
||
26 | <role> |
||
27 | <id>2</id> |
||
28 | <name>Developer</name> |
||
29 | </role> |
||
30 | </roles> |
||
31 | </pre> |
||
32 | 2 | Jean-Philippe Lang | |
33 | h2. /roles/[id].:format |
||
34 | |||
35 | h3. GET |
||
36 | |||
37 | Returns the list of permissions for a given role (version:2.2.0). |
||
38 | |||
39 | +Examples+: |
||
40 | |||
41 | <pre> |
||
42 | GET /roles/5.xml |
||
43 | </pre> |
||
44 | |||
45 | +Response+: |
||
46 | |||
47 | 3 | Go MAEDA | <pre><code class="xml"> |
48 | 2 | Jean-Philippe Lang | <role> |
49 | <id>5</id> |
||
50 | 1 | Jean-Philippe Lang | <name>Reporter</name> |
51 | 3 | Go MAEDA | <assignable>true</assignable> |
52 | <issues_visibility>default</issues_visibility> |
||
53 | <time_entries_visibility>all</time_entries_visibility> |
||
54 | <users_visibility>all</users_visibility> |
||
55 | 2 | Jean-Philippe Lang | <permissions type="array"> |
56 | <permission>view_issues</permission> |
||
57 | <permission>add_issues</permission> |
||
58 | <permission>add_issue_notes</permission> |
||
59 | ... |
||
60 | 1 | Jean-Philippe Lang | </permissions> |
61 | 2 | Jean-Philippe Lang | </role> |
62 | 3 | Go MAEDA | </code></pre> |