Project

General

Profile

Rest News » History » Revision 2

Revision 1 (Jean-Philippe Lang, 2011-07-04 21:47) → Revision 2/4 (Jean-Philippe Lang, 2011-07-04 21:48)

h1. News 

 h2. /news.:format 

 h3. GET 

 Returns all news across all projects with pagination. 

 +Example+: 

 <pre> 
 GET /news.xml 
 </pre> 

 h2. /projects/:project_id/news.:format 

 h3. GET 

 Returns all news from project with given id or identifier with pagination. 

 +Example+: 

 <pre> 
 GET /projects/foo/news.xml 
 </pre> 

 +Response+: 

 <pre> 
 <?xml version="1.0" encoding="UTF-8"?> 
 <news type="array" limit="25" total_count="2" offset="0"> 
   <news> 
     <id>54</id> 
     <project name="Redmine" id="1"/> 
     <author name="Jean-Philippe Lang" id="1"/> 
     <title>Redmine 1.1.3 released</title> 
     <summary/> 
     <description>Redmine 1.1.3 has been released</description> 
     <created_on>2011-04-29T14:00:25+02:00</created_on> 
   </news> 
   <news> 
     <id>53</id> 
     <project name="Redmine" id="1"/> 
     <author name="Jean-Philippe Lang" id="1"/> 
     <title>Redmine 1.1.2 bug/security fix released</title> 
     <summary/> 
     <description>Redmine 1.1.2 has been released</description> 
     <created_on>2011-03-07T21:07:03+01:00</created_on> 
   </news> 
 </news> 
 </pre>