Project

General

Profile

Rest News » History » Version 1

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

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