diff options
Diffstat (limited to 'app/views/wiki/show.api.rsb')
-rw-r--r-- | app/views/wiki/show.api.rsb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/wiki/show.api.rsb b/app/views/wiki/show.api.rsb new file mode 100644 index 000000000..acf62bb94 --- /dev/null +++ b/app/views/wiki/show.api.rsb @@ -0,0 +1,11 @@ +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.created_on @page.created_on + api.updated_on @content.updated_on +end |