diff options
-rw-r--r-- | lib/bitbucket_server/connection.rb | 2 | ||||
-rw-r--r-- | spec/lib/bitbucket_server/connection_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bitbucket_server/connection.rb b/lib/bitbucket_server/connection.rb index 13bbc240c99..3918944aa81 100644 --- a/lib/bitbucket_server/connection.rb +++ b/lib/bitbucket_server/connection.rb @@ -88,7 +88,7 @@ module BitbucketServer def delete_url(resource, path) if resource == :branches - "#{base_uri}/branch-utils/#{api_version}#{path}" + "#{base_uri}/rest/branch-utils/#{api_version}#{path}" else build_url(path) end diff --git a/spec/lib/bitbucket_server/connection_spec.rb b/spec/lib/bitbucket_server/connection_spec.rb index 65c78f14f58..4a421d062a3 100644 --- a/spec/lib/bitbucket_server/connection_spec.rb +++ b/spec/lib/bitbucket_server/connection_spec.rb @@ -39,7 +39,7 @@ describe BitbucketServer::Connection do describe '#delete' do context 'branch API' do let(:branch_path) { '/projects/foo/repos/bar/branches' } - let(:branch_url) { 'https://test:7990/branch-utils/1.0/projects/foo/repos/bar/branches' } + let(:branch_url) { 'https://test:7990/rest/branch-utils/1.0/projects/foo/repos/bar/branches' } let(:path) { } it 'returns JSON body' do |