role-rest-get-doc.txt

Vincent Caron, 2012-07-24 19:00

Download (1002 Bytes)

 
1
h2. /roles/[id].:format
2

    
3
h3. GET
4

    
5
Returns details for a given role (currently : the list of permissions).
6

    
7
+Examples+:
8

    
9
<pre>
10
GET /roles/5.xml
11
</pre>
12

    
13
+Response+:
14

    
15
<pre>
16
<role id="5">
17
  <name>Reporter</name>
18
  <permissions type="array">
19
    <permission>view_issues</permission>
20
    <permission>add_issues</permission>
21
    <permission>add_issue_notes</permission>
22
    <permission>save_queries</permission>
23
    <permission>view_gantt</permission>
24
    <permission>view_calendar</permission>
25
    <permission>log_time</permission>
26
    <permission>view_time_entries</permission>
27
    <permission>comment_news</permission>
28
    <permission>view_documents</permission>
29
    <permission>view_wiki_pages</permission>
30
    <permission>view_wiki_edits</permission>
31
    <permission>add_messages</permission>
32
    <permission>edit_own_messages</permission>
33
    <permission>view_files</permission>
34
    <permission>browse_repository</permission>
35
    <permission>view_changesets</permission>
36
  </permissions>
37
</role>
38
</pre>