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