travis-api/lib/travis/api/app/endpoint/builds.rb
2012-10-09 15:17:10 +02:00

34 lines
821 B
Ruby

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