You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

show.api.rsb 518B

123456789101112131415161718
  1. api.wiki_page do
  2. api.title @page.title
  3. if @page.parent
  4. api.parent :title => @page.parent.title
  5. end
  6. api.text @content.text
  7. api.version @content.version
  8. api.author(:id => @content.author_id, :name => @content.author.name)
  9. api.comments @content.comments
  10. api.created_on @page.created_on
  11. api.updated_on @content.updated_on
  12. api.array :attachments do
  13. @page.attachments.each do |attachment|
  14. render_api_attachment(attachment, api)
  15. end
  16. end if include_in_api_response?('attachments')
  17. end