Rest News » History » Version 4

Toshi MARUYAMA, 2017-09-06 17:51
use code highlight

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