Commit 8cffa2cb616548c41a71f12ee825cccf23461096
1 parent
6d33583a
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
api: fix article children pagination
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
lib/noosfero/api/v1/articles.rb
@@ -142,6 +142,7 @@ module Noosfero | @@ -142,6 +142,7 @@ module Noosfero | ||
142 | {:vote => vote.save} | 142 | {:vote => vote.save} |
143 | end | 143 | end |
144 | 144 | ||
145 | + paginate per_page: MAX_PER_PAGE, max_per_page: MAX_PER_PAGE | ||
145 | desc 'Return the children of a article identified by id' do | 146 | desc 'Return the children of a article identified by id' do |
146 | detail 'Get all children articles of a specific article' | 147 | detail 'Get all children articles of a specific article' |
147 | params Noosfero::API::Entities::Article.documentation | 148 | params Noosfero::API::Entities::Article.documentation |