fix swagger spec for receivers API response (#57124) (#57128)

(cherry picked from commit 6ad405e256)

Co-authored-by: Santiago <santiagohernandez.1997@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2022-10-18 12:50:54 -03:00
committed by GitHub
co-authored by Santiago
parent 484df7d682
commit 29baf812cf
7 changed files with 53 additions and 15 deletions
+15 -2
View File
@@ -394,14 +394,14 @@
},
"/api/alertmanager/grafana/config/api/v1/receivers": {
"get": {
"description": "Get a list of all receivers",
"tags": [
"alertmanager"
],
"summary": "Get a list of all receivers.",
"operationId": "RouteGetGrafanaReceivers",
"responses": {
"200": {
"$ref": "#/responses/receivers"
"$ref": "#/responses/receiversResponse"
}
}
}
@@ -5817,6 +5817,7 @@
}
},
"alertGroup": {
"description": "AlertGroup alert group",
"type": "object",
"required": [
"alerts",
@@ -6213,6 +6214,7 @@
}
},
"postableSilence": {
"description": "PostableSilence postable silence",
"type": "object",
"required": [
"comment",
@@ -6365,6 +6367,17 @@
}
}
},
"responses": {
"receiversResponse": {
"description": "",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/receiver"
}
}
}
},
"securityDefinitions": {
"basic": {
"type": "basic"