removed the branches endpoint
we already have branch info accessible via the repos endpoints, having this at the root level doesn't make sense.
This commit is contained in:
parent
58f1284244
commit
f7450cdb6b
|
@ -1,16 +0,0 @@
|
|||
require 'travis/api/app'
|
||||
|
||||
class Travis::Api::App
|
||||
class Endpoint
|
||||
class Branches < Endpoint
|
||||
get '/' do
|
||||
respond_with service(:find_branches, params), type: :branches
|
||||
end
|
||||
|
||||
# get '/:owner_name/:name/branches' do # v1
|
||||
# get '/repos/:owner_name/:name/branches' do # v2
|
||||
# respond_with service(:branches, :find_all, params), type: :branches
|
||||
# end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,11 +0,0 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'Branches' do
|
||||
let(:repo) { Repository.by_slug('svenfuchs/minimal').first }
|
||||
let(:headers) { { 'HTTP_ACCEPT' => 'application/vnd.travis-ci.1+json' } }
|
||||
|
||||
it 'GET /branches?repository_id=:repository_id' do
|
||||
response = get '/branches', { repository_id: repo.id }, headers
|
||||
response.should deliver_json_for(repo.last_finished_builds_by_branches, version: 'v1', type: 'branches')
|
||||
end
|
||||
end
|
|
@ -1,11 +0,0 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'Branches' do
|
||||
let(:repo) { Repository.by_slug('svenfuchs/minimal').first }
|
||||
let(:headers) { { 'HTTP_ACCEPT' => 'application/vnd.travis-ci.2+json' } }
|
||||
|
||||
it 'GET /branches?repository_id=:repository_id' do
|
||||
response = get '/branches', { repository_id: repo.id }, headers
|
||||
response.should deliver_json_for(repo.last_finished_builds_by_branches, version: 'v2', type: 'branches')
|
||||
end
|
||||
end
|
|
@ -1,5 +0,0 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Travis::Api::App::Endpoint::Branches do
|
||||
it 'has to be tested'
|
||||
end
|
Loading…
Reference in New Issue
Block a user