Adding /api/v1 prefix to all endpoints

Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
This commit is contained in:
Danny Kopping 2021-09-10 12:30:14 +02:00 committed by Julien Pivotto
parent 6a41fc22b3
commit 15a1a115de
1 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@ produces:
- "application/json" - "application/json"
paths: paths:
/status: /api/v1/status:
get: get:
tags: tags:
- general - general
@ -27,7 +27,7 @@ paths:
description: Get status response description: Get status response
schema: schema:
$ref: '#/definitions/alertmanagerStatus' $ref: '#/definitions/alertmanagerStatus'
/receivers: /api/v1/receivers:
get: get:
tags: tags:
- receiver - receiver
@ -40,7 +40,7 @@ paths:
type: array type: array
items: items:
$ref: '#/definitions/receiver' $ref: '#/definitions/receiver'
/silences: /api/v1/silences:
get: get:
tags: tags:
- silence - silence
@ -88,7 +88,7 @@ paths:
description: A silence with the specified ID was not found description: A silence with the specified ID was not found
schema: schema:
type: string type: string
/silence/{silenceID}: /api/v1/silence/{silenceID}:
parameters: parameters:
- in: path - in: path
name: silenceID name: silenceID
@ -127,7 +127,7 @@ paths:
description: Delete silence response description: Delete silence response
'500': '500':
$ref: '#/responses/InternalServerError' $ref: '#/responses/InternalServerError'
/alerts: /api/v1/alerts:
get: get:
tags: tags:
- alert - alert
@ -195,7 +195,7 @@ paths:
$ref: '#/responses/InternalServerError' $ref: '#/responses/InternalServerError'
'400': '400':
$ref: '#/responses/BadRequest' $ref: '#/responses/BadRequest'
/alerts/groups: /api/v1/alerts/groups:
get: get:
tags: tags:
- alertgroup - alertgroup