add a user permissions endpoint
This commit is contained in:
parent
f7c522278e
commit
8abc330937
|
@ -2,6 +2,7 @@ require 'travis/api/app'
|
|||
|
||||
class Travis::Api::App
|
||||
class Endpoint
|
||||
# TODO v2 should be /repos
|
||||
class Repositories < Endpoint
|
||||
get '/' do
|
||||
respond_with all(params).run
|
||||
|
|
13
lib/travis/api/app/endpoint/requests.rb
Normal file
13
lib/travis/api/app/endpoint/requests.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
require 'travis/api/app'
|
||||
|
||||
class Travis::Api::App
|
||||
class Endpoint
|
||||
class Requests < Endpoint
|
||||
post '/' do
|
||||
service(:requests, :requeue).run
|
||||
204
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -28,8 +28,12 @@ class Travis::Api::App
|
|||
204
|
||||
end
|
||||
|
||||
get '/:id?/permissions', scope: :private do
|
||||
respond_with service(:users, :permissions).run
|
||||
end
|
||||
|
||||
post '/sync', scope: :private do
|
||||
service(:sync).run
|
||||
service(:users, :sync).run
|
||||
204
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user