Rest Queries » 履歴 » バージョン 1
Mitsuyoshi Yoshida, 2011/12/12 00:24
1 | 1 | Mitsuyoshi Yoshida | redmine.org の "Rest_Queries":http://www.redmine.org/projects/redmine/wiki/Rest_Queries (version 2)の日本語訳です。 |
---|---|---|---|
2 | |||
3 | {{>toc}} |
||
4 | |||
5 | h1. REST クエリ |
||
6 | |||
7 | h2. フォーマット /queries. |
||
8 | |||
9 | h3. GET |
||
10 | |||
11 | カレントのユーザーから表示可能なすべてのカスタムクエリ(公開またはプライベートクエリ)のリストを取得します。すべてのプロジェクトが対象となります。 |
||
12 | |||
13 | +例+: |
||
14 | |||
15 | <pre> |
||
16 | GET /queries.xml |
||
17 | </pre> |
||
18 | |||
19 | +レスポンス+: |
||
20 | |||
21 | <pre><code class="xml"> |
||
22 | <?xml version="1.0" encoding="UTF-8"?> |
||
23 | <queries type="array" total_count="5" limit="25" offset="0"> |
||
24 | <query> |
||
25 | <id>84</id> |
||
26 | <name>Documentation issues</name> |
||
27 | <is_public>true</is_public> |
||
28 | <project_id>1</project_id> |
||
29 | </query> |
||
30 | <query> |
||
31 | <id>1</id> |
||
32 | <name>Open defects</name> |
||
33 | <is_public>true</is_public> |
||
34 | <project_id>1</project_id> |
||
35 | </query> |
||
36 | </queries> |
||
37 | </code></pre> |
||
38 | |||
39 | チケットの一覧を取得するときにクエリ ID を付けるとそれにマッチするチケットのリストが取得されます。 |
||
40 | |||
41 | <pre> |
||
42 | GET /issues.xml?query_id=:id |
||
43 | GET /projects/foo/issues.xml?query_id=:id |
||
44 | </pre> |