Rest News » History » Version 4
Toshi MARUYAMA, 2017-09-06 17:51
use code highlight
1 | 1 | Jean-Philippe Lang | h1. News |
---|---|---|---|
2 | |||
3 | 3 | Jean-Philippe Lang | {{>toc}} |
4 | |||
5 | 1 | Jean-Philippe Lang | h2. /news.:format |
6 | |||
7 | h3. GET |
||
8 | |||
9 | Returns all news across all projects with pagination. |
||
10 | |||
11 | 2 | Jean-Philippe Lang | +Example+: |
12 | |||
13 | <pre> |
||
14 | GET /news.xml |
||
15 | </pre> |
||
16 | |||
17 | 1 | Jean-Philippe Lang | h2. /projects/:project_id/news.:format |
18 | |||
19 | h3. GET |
||
20 | |||
21 | Returns all news from project with given id or identifier with pagination. |
||
22 | |||
23 | +Example+: |
||
24 | |||
25 | <pre> |
||
26 | GET /projects/foo/news.xml |
||
27 | </pre> |
||
28 | |||
29 | +Response+: |
||
30 | |||
31 | 4 | Toshi MARUYAMA | <pre><code class="xml"> |
32 | 1 | Jean-Philippe Lang | <?xml version="1.0" encoding="UTF-8"?> |
33 | <news type="array" limit="25" total_count="2" offset="0"> |
||
34 | <news> |
||
35 | <id>54</id> |
||
36 | <project name="Redmine" id="1"/> |
||
37 | <author name="Jean-Philippe Lang" id="1"/> |
||
38 | <title>Redmine 1.1.3 released</title> |
||
39 | <summary/> |
||
40 | <description>Redmine 1.1.3 has been released</description> |
||
41 | <created_on>2011-04-29T14:00:25+02:00</created_on> |
||
42 | </news> |
||
43 | <news> |
||
44 | <id>53</id> |
||
45 | <project name="Redmine" id="1"/> |
||
46 | <author name="Jean-Philippe Lang" id="1"/> |
||
47 | <title>Redmine 1.1.2 bug/security fix released</title> |
||
48 | <summary/> |
||
49 | <description>Redmine 1.1.2 has been released</description> |
||
50 | <created_on>2011-03-07T21:07:03+01:00</created_on> |
||
51 | </news> |
||
52 | </news> |
||
53 | 4 | Toshi MARUYAMA | </code></pre> |