Sha256: 345ec48627e1b9824e486f3d241ef9366e78a27bf39d9953f926c13eadd82ea5

Contents?: true

Size: 518 Bytes

Versions: 34

Compression:

Stored size: 518 Bytes

Contents

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)
  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

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
redmine_extensions-0.0.39 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.0.38 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.0.37 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.1.11 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.1.10 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.0.36 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.0.34 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.1.09 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.1.07 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.1.06 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.1.05 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.1.04 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.1.03 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.0.33 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.1.02 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.1.01 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.0.29 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.0.28 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.0.27 spec/redmine/app/views/wiki/show.api.rsb
redmine_extensions-0.0.24 spec/redmine/app/views/wiki/show.api.rsb