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