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
66 lines
1.4 KiB
JSON
66 lines
1.4 KiB
JSON
{
|
|
"operationId": "getProxyHosts",
|
|
"summary": "Get all proxy hosts",
|
|
"tags": ["Proxy Hosts"],
|
|
"security": [
|
|
{
|
|
"BearerAuth": ["proxy_hosts"]
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"in": "query",
|
|
"name": "expand",
|
|
"description": "Expansions",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": ["access_list", "owner", "certificate"]
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "200 response",
|
|
"content": {
|
|
"application/json": {
|
|
"examples": {
|
|
"default": {
|
|
"value": [
|
|
{
|
|
"id": 1,
|
|
"created_on": "2024-10-08T23:23:03.000Z",
|
|
"modified_on": "2024-10-08T23:23:04.000Z",
|
|
"owner_user_id": 1,
|
|
"domain_names": ["test.example.com"],
|
|
"forward_host": "127.0.0.1",
|
|
"forward_port": 8989,
|
|
"access_list_id": 0,
|
|
"certificate_id": 0,
|
|
"ssl_forced": 0,
|
|
"caching_enabled": 0,
|
|
"block_exploits": 0,
|
|
"advanced_config": "",
|
|
"meta": {
|
|
"nginx_online": true,
|
|
"nginx_err": null
|
|
},
|
|
"allow_websocket_upgrade": 0,
|
|
"http2_support": 0,
|
|
"forward_scheme": "http",
|
|
"enabled": 1,
|
|
"locations": null,
|
|
"hsts_enabled": 0,
|
|
"hsts_subdomains": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"schema": {
|
|
"$ref": "../../../components/proxy-host-list.json"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|