Rest News » History » Version 1

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

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