mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-14 09:09:42 +00:00
45 lines
1.4 KiB
JSON
45 lines
1.4 KiB
JSON
{
|
|
"openapi": "3.0.0",
|
|
"info": {
|
|
"title": "Server Precedence Test",
|
|
"version": "1.0.0"
|
|
},
|
|
"servers": [{ "url": "https://root.example.com" }],
|
|
"paths": {
|
|
"/root-only": {
|
|
"get": {
|
|
"operationId": "rootOnly",
|
|
"responses": { "200": { "description": "OK" } }
|
|
}
|
|
},
|
|
"/path-override": {
|
|
"servers": [{ "url": "https://path.example.com" }],
|
|
"get": {
|
|
"operationId": "pathOverride",
|
|
"responses": { "200": { "description": "OK" } }
|
|
}
|
|
},
|
|
"/operation-override": {
|
|
"servers": [{ "url": "https://path.example.com" }],
|
|
"get": {
|
|
"operationId": "operationOverride",
|
|
"servers": [{ "url": "https://operation.example.com" }],
|
|
"responses": { "200": { "description": "OK" } }
|
|
}
|
|
},
|
|
"/operation-skip-path": {
|
|
"get": {
|
|
"operationId": "operationSkipPath",
|
|
"servers": [{ "url": "https://operation.example.com" }],
|
|
"responses": { "200": { "description": "OK" } }
|
|
}
|
|
},
|
|
"/no-servers": {
|
|
"get": {
|
|
"operationId": "noServers",
|
|
"responses": { "200": { "description": "OK" } }
|
|
}
|
|
}
|
|
}
|
|
}
|