##// END OF EJS Templates
Merged r15490 to r15493, r15496, r15497 (#22951)....
Merged r15490 to r15493, r15496, r15497 (#22951). git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@15500 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r12015:71b43ea1c7c1
r15118:8516e1c88dfe
Show More
show.api.rsb
18 lines | 518 B | text/plain | TextLexer
Jean-Philippe Lang
REST API for retrieving wiki pages (#7082)....
r10504 api.wiki_page do
api.title @page.title
if @page.parent
api.parent :title => @page.parent.title
end
api.text @content.text
api.version @content.version
api.author(:id => @content.author_id, :name => @content.author.name)
Jean-Philippe Lang
Wiki Pages REST API with version returns wrong comments (#15235)....
r12015 api.comments @content.comments
Jean-Philippe Lang
REST API for retrieving wiki pages (#7082)....
r10504 api.created_on @page.created_on
api.updated_on @content.updated_on
Jean-Philippe Lang
Adds ?include=attachments option when retrieving a wiki page with the REST API (#7082)....
r10506
api.array :attachments do
@page.attachments.each do |attachment|
render_api_attachment(attachment, api)
end
end if include_in_api_response?('attachments')
Jean-Philippe Lang
REST API for retrieving wiki pages (#7082)....
r10504 end