Project

General

Profile

Rest Enumerations » History » Version 3

Toshi MARUYAMA, 2017-03-07 07:10
use code highlight

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 3 Toshi MARUYAMA
<pre><code class="xml">
20 1 Jean-Philippe Lang
<?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 3 Toshi MARUYAMA
</code></pre>
35 1 Jean-Philippe Lang
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 3 Toshi MARUYAMA
<pre><code class="xml">
51 1 Jean-Philippe Lang
<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 3 Toshi MARUYAMA
</code></pre>
60 2 Go MAEDA
61
h2. /enumerations/document_categories.:format
62
63
h3. GET
64
65
Returns the list of document categories.
66
67
+Examples+:
68
69
<pre>
70
GET /enumerations/document_categories.xml
71
</pre>
72
73
+Response+:
74
75 3 Toshi MARUYAMA
<pre><code class="xml">
76 2 Go MAEDA
<document_categories type="array">
77
  <document_category>
78
    <id>1</id>
79
    <name>Uncategorized</name>
80
    <is_default>false</is_default>
81
  </document_category>
82
  <document_category>
83
    <id>2</id>
84
    <name>User documentation</name>
85
    <is_default>false</is_default>
86
  </document_category>
87
  <document_category>
88
    <id>3</id>
89
    <name>Technical documentation</name>
90
    <is_default>false</is_default>
91
  </document_category>
92
</document_categories>
93 3 Toshi MARUYAMA
</code></pre>