Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Swagger GET metrics #297

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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