Skip to content

Instantly share code, notes, and snippets.

@andyo-tyk
Created March 7, 2024 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyo-tyk/5d5cfeda404ce1ba498bbf4b9c105cf0 to your computer and use it in GitHub Desktop.
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
{
"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