##// END OF EJS Templates
Adds last edit comments on the wiki page (#7082)....
Adds last edit comments on the wiki page (#7082). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10719 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r10507:a679d19709cf
r10507:a679d19709cf
Show More
show.api.rsb
18 lines | 523 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
Adds last edit comments on the wiki page (#7082)....
r10507 api.comments @page.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