POST routes to PUT routes (#48828)

This commit is contained in:
Alexander Weaver
2022-05-06 14:33:30 -05:00
committed by GitHub
parent bb66c03f9a
commit 809aa38103
9 changed files with 48 additions and 46 deletions
@@ -8,7 +8,7 @@ package definitions
// 200: Route
// 400: ValidationError
// swagger:route POST /api/provisioning/policies provisioning RoutePostPolicyTree
// swagger:route PUT /api/provisioning/policies provisioning RoutePutPolicyTree
//
// Sets the notification policy tree.
//
@@ -19,7 +19,7 @@ package definitions
// 202: Accepted
// 400: ValidationError
// swagger:parameters RoutePostPolicyTree
// swagger:parameters RoutePutPolicyTree
type Policytree struct {
// in:body
Body Route
+5 -4
View File
@@ -3569,7 +3569,6 @@
"x-go-package": "github.com/prometheus/alertmanager/api/v2/models"
},
"receiver": {
"description": "Receiver receiver",
"properties": {
"name": {
"description": "name",
@@ -3580,7 +3579,9 @@
"required": [
"name"
],
"type": "object"
"type": "object",
"x-go-name": "Receiver",
"x-go-package": "github.com/prometheus/alertmanager/api/v2/models"
},
"silence": {
"description": "Silence silence",
@@ -4927,11 +4928,11 @@
"provisioning"
]
},
"post": {
"put": {
"consumes": [
"application/json"
],
"operationId": "RoutePostPolicyTree",
"operationId": "RoutePutPolicyTree",
"parameters": [
{
"in": "body",
+4 -3
View File
@@ -1250,7 +1250,7 @@
}
}
},
"post": {
"put": {
"consumes": [
"application/json"
],
@@ -1258,7 +1258,7 @@
"provisioning"
],
"summary": "Sets the notification policy tree.",
"operationId": "RoutePostPolicyTree",
"operationId": "RoutePutPolicyTree",
"parameters": [
{
"name": "Body",
@@ -5555,7 +5555,6 @@
"$ref": "#/definitions/postableSilence"
},
"receiver": {
"description": "Receiver receiver",
"type": "object",
"required": [
"name"
@@ -5567,6 +5566,8 @@
"x-go-name": "Name"
}
},
"x-go-name": "Receiver",
"x-go-package": "github.com/prometheus/alertmanager/api/v2/models",
"$ref": "#/definitions/receiver"
},
"silence": {