Skip to content

Commit

Permalink
Fix Swagger GET metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
vkatsuba committed Jan 25, 2021
1 parent 3ec1cb7 commit 2919e64
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions priv/static/specs/http_api_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,33 @@ info:
license:
name: "GPL 2.0"
url: "https://www.gnu.org/licenses/#GPL"
basePath: /api/v1
basePath: /
paths:
/version:
/api/v1/version:
get:
summary: get the erGW version
responses:
'200':
description: 'returns version of the erGW'
schema:
$ref: '#/definitions/Version'
/status:
/api/v1/status:
get:
summary: get the status
responses:
'200':
description: returns the current status
schema:
$ref: '#/definitions/Status'
/status/accept-new:
/api/v1/status/accept-new:
get:
summary: get the current 'accept-new' status
responses:
'200':
description: get the current 'accept-new' status
schema:
$ref: '#/definitions/StatusAcceptNewRequests'
/status/accept-new/{value}:
/api/v1/status/accept-new/{value}:
post:
summary: 'enables/disables accepting new requests'
parameters:
Expand All @@ -49,18 +49,20 @@ paths:
/metrics:
get:
summary: get the metrics
produces:
- text/plain
responses:
'200':
description: returns the metrics
/contexts:
/api/v1/contexts:
delete:
summary: 'delete all contexts'
responses:
'200':
description: return count of contexts
schema:
$ref: '#/definitions/DeleteContexts'
/contexts/{count}:
/api/v1/contexts/{count}:
delete:
summary: 'delete N contexts'
parameters:
Expand Down

0 comments on commit 2919e64

Please sign in to comment.