Rest News » History » Version 2

Jean-Philippe Lang, 2011-07-04 21:48

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