diff --git a/oas/petstore/.tyk.json b/oas/petstore/.tyk.json new file mode 100644 index 0000000..70b3c4a --- /dev/null +++ b/oas/petstore/.tyk.json @@ -0,0 +1,9 @@ +{ + "type": "apidef", + "files": [ + { + "file": "api-fd1d5a17b4a24768635fc1ca415b6f40.json", + "oas": {} + } + ] + } \ No newline at end of file diff --git a/oas/petstore/api-fd1d5a17b4a24768635fc1ca415b6f40.json b/oas/petstore/api-fd1d5a17b4a24768635fc1ca415b6f40.json new file mode 100644 index 0000000..322b975 --- /dev/null +++ b/oas/petstore/api-fd1d5a17b4a24768635fc1ca415b6f40.json @@ -0,0 +1,94 @@ +{ + "info": { + "title": "petstore", + "version": "1.0.0" + }, + "openapi": "3.0.3", + "servers": [ + { + "url": "https://localhost:8080/petstore/" + } + ], + "security": [ + { + "authToken": [] + } + ], + "paths": { + "/pet/{petId}": { + "get": { + "operationId": "pet/{petId}get", + "parameters": [ + { + "in": "path", + "name": "petId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "" + } + } + } + } + }, + "components": { + "securitySchemes": { + "authToken": { + "type": "apiKey", + "in": "header", + "name": "Authorization" + } + } + }, + "x-tyk-api-gateway": { + "info": { + "dbId": "6673f2bf84d22d01985f74e6", + "id": "fd1d5a17b4a24768635fc1ca415b6f40", + "orgId": "60dc2ae33ff411a0ddd459d9", + "name": "petstore", + "state": { + "active": true, + "internal": false + } + }, + "middleware": { + "global": { + "contextVariables": { + "enabled": true + }, + "trafficLogs": { + "enabled": true + } + }, + "operations": { + "pet/{petId}get": { + "trackEndpoint": { + "enabled": true + } + } + } + }, + "server": { + "authentication": { + "enabled": true, + "securitySchemes": { + "authToken": { + "enabled": true + } + } + }, + "listenPath": { + "strip": true, + "value": "/petstore/" + } + }, + "upstream": { + "url": "https://petstore3.swagger.io/api/v3" + } + } + } \ No newline at end of file diff --git a/oas/petstore/readme.md b/oas/petstore/readme.md new file mode 100644 index 0000000..e69de29 diff --git a/repository.json b/repository.json index 0116b3d..67ec073 100644 --- a/repository.json +++ b/repository.json @@ -41,6 +41,14 @@ "Authorization Token" ], "minTykVersion": "5.4" + }, + { + "location": "oas/petstore", + "name": "Petstore OAS HTTP API", + "description": "This is a sample Pet Store Server based on the OpenAPI 3.0 specification.", + "features": [ + ], + "minTykVersion": "5.4" } ], "graphql": [ @@ -53,6 +61,16 @@ ], "minTykVersion": "5.4" } + ], + "oas": [ + { + "location": "oas/petstore", + "name": "Petstore OAS HTTP API", + "description": "This is a sample Pet Store Server based on the OpenAPI 3.0 specification.", + "features": [ + ], + "minTykVersion": "5.4" + } ] } } \ No newline at end of file