diff options
Diffstat (limited to 'lib/api/circuit_breakers.rb')
-rw-r--r-- | lib/api/circuit_breakers.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/api/circuit_breakers.rb b/lib/api/circuit_breakers.rb index da756daadcc..202fe410918 100644 --- a/lib/api/circuit_breakers.rb +++ b/lib/api/circuit_breakers.rb @@ -7,28 +7,28 @@ module API resource :circuit_breakers do params do requires :type, - type: String, - desc: "The type of circuitbreaker", - values: ['repository_storage'] + type: String, + desc: "The type of circuitbreaker", + values: ["repository_storage"] end - resource ':type' do - namespace '', requirements: { type: 'repository_storage' } do - desc 'Get all git storages' do - detail 'This feature was introduced in GitLab 9.5' + resource ":type" do + namespace "", requirements: {type: "repository_storage"} do + desc "Get all git storages" do + detail "This feature was introduced in GitLab 9.5" end get do present [] end - desc 'Get all failing git storages' do - detail 'This feature was introduced in GitLab 9.5' + desc "Get all failing git storages" do + detail "This feature was introduced in GitLab 9.5" end - get 'failing' do + get "failing" do present [] end - desc 'Reset all storage failures and open circuitbreaker' do - detail 'This feature was introduced in GitLab 9.5' + desc "Reset all storage failures and open circuitbreaker" do + detail "This feature was introduced in GitLab 9.5" end delete do end |