actually turn these objects into json
This commit is contained in:
parent
c6ab5d3b98
commit
a2d195ecf9
|
@ -6,7 +6,7 @@ class Travis::Api::App
|
|||
class Artifacts < Endpoint
|
||||
# TODO: Add documentation.
|
||||
get('/:id') do |id|
|
||||
service(:artifacts).find_one(params)
|
||||
body service(:artifacts).find_one(params)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -6,7 +6,7 @@ class Travis::Api::App
|
|||
class Branches < Endpoint
|
||||
# TODO: Add documentation.
|
||||
get('/') do
|
||||
body service(:branches).find_all(params)
|
||||
body service(:branches).find_all(params), :type => :branches
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -6,12 +6,12 @@ class Travis::Api::App
|
|||
class Builds < Endpoint
|
||||
# TODO: Add documentation.
|
||||
get '/' do
|
||||
service(:builds).find_all(params)
|
||||
body service(:builds).find_all(params)
|
||||
end
|
||||
|
||||
# TODO: Add documentation.
|
||||
get '/:id' do
|
||||
service(:builds).find_one(params)
|
||||
body service(:builds).find_one(params)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -6,12 +6,12 @@ class Travis::Api::App
|
|||
class Hooks < Endpoint
|
||||
# TODO: Add implementation and documentation.
|
||||
get('/', scope: :private) do
|
||||
service(:builds).find_all(params)
|
||||
body service(:builds).find_all(params)
|
||||
end
|
||||
|
||||
# TODO: Add implementation and documentation.
|
||||
put('/:id', scope: :admin) do
|
||||
respond_with service(:hooks).update(params)
|
||||
body service(:hooks).update(params)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -6,12 +6,12 @@ class Travis::Api::App
|
|||
class Jobs < Endpoint
|
||||
# TODO: Add documentation.
|
||||
get('/') do
|
||||
service(:jobs).find_all(params)
|
||||
body service(:jobs).find_all(params)
|
||||
end
|
||||
|
||||
# TODO: Add documentation.
|
||||
get('/:id') do
|
||||
service(:jobs).find_one(params)
|
||||
body service(:jobs).find_one(params)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -6,7 +6,7 @@ class Travis::Api::App
|
|||
class Workers < Endpoint
|
||||
# TODO: Add implementation and documentation.
|
||||
get('/') do
|
||||
service(:workers).find_all(params)
|
||||
body service(:workers).find_all(params)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user