1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-03-11 03:33:07 +00:00
redmine/app/views/wiki/show.api.rsb
Marius Balteanu 31eb388f26 Merged r21414 to 4.2-stable (#36494).
git-svn-id: http://svn.redmine.org/redmine/branches/4.2-stable@21420 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-02-20 15:52:53 +00:00

19 lines
549 B
Plaintext

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) unless @content.author_id.nil?
api.comments @content.comments
api.created_on @page.created_on
api.updated_on @content.updated_on
api.array :attachments do
@page.attachments.each do |attachment|
render_api_attachment(attachment, api)
end
end if include_in_api_response?('attachments')
end