mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-23 13:18:14 -05:00
dfe2588523
- /schema now returns full openapi/swagger schema - That schema is used to validate incoming requests - And used as a contract in future integration tests - Moved route files up one level - Fixed incorrect 404 reponses when getting objects - Fixed saving new objects and passing jsonschemavalidation
51 lines
918 B
JSON
51 lines
918 B
JSON
{
|
|
"operationId": "reportsHosts",
|
|
"summary": "Report on Host Statistics",
|
|
"tags": ["Reports"],
|
|
"security": [
|
|
{
|
|
"BearerAuth": ["reports"]
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "200 response",
|
|
"content": {
|
|
"application/json": {
|
|
"examples": {
|
|
"default": {
|
|
"value": {
|
|
"proxy": 20,
|
|
"redirection": 1,
|
|
"stream": 0,
|
|
"dead": 1
|
|
}
|
|
}
|
|
},
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"proxy": {
|
|
"type": "integer",
|
|
"description": "Proxy Hosts Count"
|
|
},
|
|
"redirection": {
|
|
"type": "integer",
|
|
"description": "Redirection Hosts Count"
|
|
},
|
|
"stream": {
|
|
"type": "integer",
|
|
"description": "Streams Count"
|
|
},
|
|
"dead": {
|
|
"type": "integer",
|
|
"description": "404 Hosts Count"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|