2022-05-11 18:47:31 -04:00
|
|
|
{
|
2023-01-04 00:36:56 -05:00
|
|
|
"operationId": "deleteUpstream",
|
|
|
|
"summary": "Delete a Upstream",
|
|
|
|
"tags": ["Upstreams"],
|
2022-05-11 18:47:31 -04:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"in": "path",
|
2023-01-04 00:36:56 -05:00
|
|
|
"name": "upstreamID",
|
2022-05-11 18:47:31 -04:00
|
|
|
"schema": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 1
|
|
|
|
},
|
|
|
|
"required": true,
|
2023-01-04 00:36:56 -05:00
|
|
|
"description": "Numeric ID of the Upstream",
|
2022-05-11 18:47:31 -04:00
|
|
|
"example": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "200 response",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/DeletedItemResponse"
|
|
|
|
},
|
|
|
|
"examples": {
|
|
|
|
"default": {
|
|
|
|
"value": {
|
|
|
|
"result": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"400": {
|
|
|
|
"description": "400 response",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/components/schemas/DeletedItemResponse"
|
|
|
|
},
|
|
|
|
"examples": {
|
|
|
|
"default": {
|
|
|
|
"value": {
|
|
|
|
"result": null,
|
|
|
|
"error": {
|
|
|
|
"code": 400,
|
2023-01-04 00:36:56 -05:00
|
|
|
"message": "You cannot delete a Upstream that is in use!"
|
2022-05-11 18:47:31 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|