Skip to content

Commit

Permalink
Fix search SLO URI (#260)
Browse files Browse the repository at this point in the history
* Fix search SLO URI

Fixes #259

* Fix test
  • Loading branch information
therve authored Apr 29, 2021
1 parent cb664a1 commit 00c516a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/dogapi/v1/service_level_objective.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def search_service_level_objective(slo_ids, query, offset, limit)
params[:query] = query
end

request(Net::HTTP::Get, "/api/#{API_VERSION}/slo/", params, nil, false)
request(Net::HTTP::Get, "/api/#{API_VERSION}/slo", params, nil, false)
end

def delete_service_level_objective(slo_id)
Expand Down
2 changes: 1 addition & 1 deletion spec/integration/service_level_objective_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
describe '#search_service_level_objective' do
it_behaves_like 'an api method with optional params',
:search_service_level_objective, [[SLO_ID]],
:get, '/slo/', 'ids' => SLO_ID
:get, '/slo', 'ids' => SLO_ID
end

describe '#delete_service_level_objective' do
Expand Down

0 comments on commit 00c516a

Please sign in to comment.