Created
March 7, 2024 11:43
-
-
Save andyo-tyk/5d5cfeda404ce1ba498bbf4b9c105cf0 to your computer and use it in GitHub Desktop.
Example API definition created by importing OpenAPI description with My Second Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"title": "my-open-api-document", | |
"version": "1.0.0" | |
}, | |
"openapi": "3.0.3", | |
"servers": [ | |
{ | |
"url": "http://localhost:8181/" | |
}, | |
{ | |
"url": "http://httpbin.org" | |
} | |
], | |
"security": [], | |
"paths": { | |
"/anything": { | |
"post": { | |
"operationId": "anythingpost", | |
"responses": { | |
"200": { | |
"description": "" | |
} | |
} | |
} | |
}, | |
"/xml": { | |
"get": { | |
"operationId": "xmlget", | |
"responses": { | |
"200": { | |
"description": "" | |
} | |
} | |
} | |
} | |
}, | |
"components": { | |
"securitySchemes": {} | |
}, | |
"x-tyk-api-gateway": { | |
"info": { | |
"dbId": "65e9a752cb71918520ff661b", | |
"id": "82c0256aec434409748bac1a299ecc60", | |
"orgId": "65d635966ec69461e0e7ee52", | |
"name": "my-open-api-document", | |
"state": { | |
"active": true, | |
"internal": false | |
} | |
}, | |
"middleware": { | |
"global": { | |
"cache": { | |
"cacheResponseCodes": [], | |
"cacheByHeaders": [], | |
"timeout": 5, | |
"cacheAllSafeRequests": true, | |
"enabled": true | |
} | |
}, | |
"operations": { | |
"anythingpost": { | |
"transformResponseHeaders": { | |
"enabled": true, | |
"add": [ | |
{ | |
"name": "X-Foo", | |
"value": "bar" | |
} | |
] | |
} | |
} | |
} | |
}, | |
"server": { | |
"listenPath": { | |
"strip": true, | |
"value": "/" | |
} | |
}, | |
"upstream": { | |
"url": "http://httpbin.org/" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment