mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
added example openapi file
This commit is contained in:
41
test/data/valid_openapi/server_overriding.json
Normal file
41
test/data/valid_openapi/server_overriding.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"openapi": "3.0.2",
|
||||
"info": {
|
||||
"title": "Example",
|
||||
"version": "2.0.0"
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
"url": "https://api.example.com"
|
||||
}
|
||||
],
|
||||
"paths": {
|
||||
"/primary-domain/works": {
|
||||
"get": {
|
||||
"operationId": "get_authorize",
|
||||
"summary": "Should keep the same domain",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A response"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/secondary-domain/fails": {
|
||||
"get": {
|
||||
"operationId": "get_authorize",
|
||||
"summary": "Should use the other domain",
|
||||
"servers": [
|
||||
{
|
||||
"url": "https://other-api.example.com"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user