Rest Roles » History » Version 1
Jean-Philippe Lang, 2012-02-06 11:16
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> |