mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-24 13:48:14 -05:00
60 lines
1.0 KiB
JSON
60 lines
1.0 KiB
JSON
{
|
|
"operationId": "deleteDNSProvider",
|
|
"summary": "Delete a DNS Provider",
|
|
"tags": [
|
|
"DNS Providers"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "providerID",
|
|
"schema": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"required": true,
|
|
"description": "Numeric ID of the DNS Provider",
|
|
"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,
|
|
"message": "You cannot delete a DNS Provider that is in use!"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |