From 6f72b2cb6b18dbcad5132971a0ba2b65150c1769 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Thu, 3 Oct 2013 17:25:40 +0200 Subject: [PATCH] find_branch(es) expects parameter to be called repository_id --- lib/travis/api/app/endpoint/repos.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/travis/api/app/endpoint/repos.rb b/lib/travis/api/app/endpoint/repos.rb index fd3bbd27..1f8b0e3b 100644 --- a/lib/travis/api/app/endpoint/repos.rb +++ b/lib/travis/api/app/endpoint/repos.rb @@ -51,12 +51,12 @@ class Travis::Api::App end # Gets list of branches - get '/:id/branches' do + get '/:repository_id/branches' do respond_with service(:find_branches, params), type: :branches, version: :v2 end # Gets lastest build on a branch branches - get '/:id/branches/:branch' do + get '/:repository_id/branches/:branch' do respond_with service(:find_branch, params), type: :branch, version: :v2 end