travis-api/lib/travis/api/app/endpoint/builds.rb
2012-10-05 13:06:50 +02:00

34 lines
825 B
Ruby

require 'travis/api/app'
class Travis::Api::App
class Endpoint
class Builds < Endpoint
get '/' do
respond_with all(params).run
end
get '/:id' do
respond_with one(params).run || not_found
end
# get '/repositories/:repository_id/builds' do # v1
# get '/repos/:repository_id/builds' do # v2
# respond_with all(params).run
# end
# get '/repositories/:repository_id/builds/1' do # v1
# respond_with all(params).run
# end
# get '/:owner_name/:name/builds' do # v1
# get '/repos/:owner_name/:name/builds' do # v2
# respond_with all(params).run
# end
# get '/:owner_name/:name/builds/:id' do # v1
# respond_with all(params).run
# end
end
end
end