ngalert swagger: Fix status code (#79415)

This endpoint returns a 202, not a 204
Let me know if we should instead change the response of the API
This commit is contained in:
Julien Duchesne
2023-12-12 13:40:36 -05:00
committed by GitHub
parent 0918d000bf
commit f977e3faf5
6 changed files with 35 additions and 36 deletions
+5 -7
View File
@@ -2433,7 +2433,7 @@
}
],
"responses": {
"204": {
"202": {
"description": " The contact point was deleted successfully."
}
}
@@ -5082,13 +5082,13 @@
"MuteTimeIntervalExport": {
"type": "object",
"properties": {
"OrgID": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"orgId": {
"type": "integer",
"format": "int64"
},
"time_intervals": {
"type": "array",
"items": {
@@ -7576,7 +7576,6 @@
"$ref": "#/definitions/gettableAlerts"
},
"gettableSilence": {
"description": "GettableSilence gettable silence",
"type": "object",
"required": [
"comment",
@@ -7778,7 +7777,6 @@
}
},
"postableSilence": {
"description": "PostableSilence postable silence",
"type": "object",
"required": [
"comment",