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