diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-12-04 20:11:19 +0300 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-12-04 20:11:19 +0300 |
commit | 74c8669b0a96b6afcb41ce5e09b147c7309ecbeb (patch) | |
tree | 9aafc9d41139a4e63305350ec2bc812a84e3f0a1 /lib/api/triggers.rb | |
parent | bd67459131e22273b502eb27d97709827ff42262 (diff) |
Use the pagination helper in the API
Diffstat (limited to 'lib/api/triggers.rb')
-rw-r--r-- | lib/api/triggers.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/api/triggers.rb b/lib/api/triggers.rb index bb4de39def1..87a717ba751 100644 --- a/lib/api/triggers.rb +++ b/lib/api/triggers.rb @@ -1,5 +1,7 @@ module API class Triggers < Grape::API + include PaginationParams + params do requires :id, type: String, desc: 'The ID of a project' end @@ -42,6 +44,9 @@ module API desc 'Get triggers list' do success Entities::Trigger end + params do + use :pagination + end get ':id/triggers' do authenticate! authorize! :admin_build, user_project |