Rest Enumerations » History » Version 1
Jean-Philippe Lang, 2012-10-17 22:33
| 1 | 1 | Jean-Philippe Lang | h1. Enumerations |
|---|---|---|---|
| 2 | |||
| 3 | {{>toc}} |
||
| 4 | |||
| 5 | h2. /enumerations/issue_priorities.:format |
||
| 6 | |||
| 7 | h3. GET |
||
| 8 | |||
| 9 | Returns the list of [[Rest_Issues|issue]] priorities. |
||
| 10 | |||
| 11 | +Examples+: |
||
| 12 | |||
| 13 | <pre> |
||
| 14 | GET /enumerations/issue_priorities.xml |
||
| 15 | </pre> |
||
| 16 | |||
| 17 | +Response+: |
||
| 18 | |||
| 19 | <pre> |
||
| 20 | <?xml version="1.0" encoding="UTF-8"?> |
||
| 21 | <issue_priorities type="array"> |
||
| 22 | <issue_priority> |
||
| 23 | <id>3</id> |
||
| 24 | <name>Low</name> |
||
| 25 | <is_default>false</is_default> |
||
| 26 | </issue_priority> |
||
| 27 | <issue_priority> |
||
| 28 | <id>4</id> |
||
| 29 | <name>Normal</name> |
||
| 30 | <is_default>true</is_default> |
||
| 31 | </issue_priority> |
||
| 32 | ... |
||
| 33 | </issue_priorities> |
||
| 34 | </pre> |
||
| 35 | |||
| 36 | h2. /enumerations/time_entry_activities.:format |
||
| 37 | |||
| 38 | h3. GET |
||
| 39 | |||
| 40 | Returns the list of [[Rest_TimeEntries|time entry]] activities. |
||
| 41 | |||
| 42 | +Examples+: |
||
| 43 | |||
| 44 | <pre> |
||
| 45 | GET /enumerations/time_entry_activities.xml |
||
| 46 | </pre> |
||
| 47 | |||
| 48 | +Response+: |
||
| 49 | |||
| 50 | <pre> |
||
| 51 | <time_entry_activities type="array"> |
||
| 52 | <time_entry_activity> |
||
| 53 | <id>8</id> |
||
| 54 | <name>Design</name> |
||
| 55 | <is_default>false</is_default> |
||
| 56 | </time_entry_activity> |
||
| 57 | ... |
||
| 58 | </time_entry_activities> |
||
| 59 | </pre> |