Alerting: Fix status code of successful response POST /api/alertmanager/grafana/api/v2/silences in swagger specs (#67951)

* update status code to reflect reality

* update docs
pull/68482/head
Yuri Tseretyan 2 years ago committed by GitHub
parent f7b8a666f4
commit ab5a3820d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/services/ngalert/api/tooling/definitions/alertmanager.go
  2. 2
      pkg/services/ngalert/api/tooling/post.json
  3. 2
      pkg/services/ngalert/api/tooling/spec.json

@ -203,7 +203,7 @@ import (
// create silence
//
// Responses:
// 201: postSilencesOKBody
// 202: postSilencesOKBody
// 400: ValidationError
// swagger:route POST /api/alertmanager/{DatasourceUID}/api/v2/silences alertmanager RouteCreateSilence

@ -4519,7 +4519,7 @@
}
],
"responses": {
"201": {
"202": {
"description": "postSilencesOKBody",
"schema": {
"$ref": "#/definitions/postSilencesOKBody"

@ -247,7 +247,7 @@
}
],
"responses": {
"201": {
"202": {
"description": "postSilencesOKBody",
"schema": {
"$ref": "#/definitions/postSilencesOKBody"

Loading…
Cancel
Save