diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2c5286341f0f820173e0.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2c5286341f0f820173e0.json new file mode 100644 index 00000000..bf584f27 --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2c5286341f0f820173e0.json @@ -0,0 +1,158 @@ +{ + "components": {}, + "info": { + "title": "httpbin API", + "version": "1.0.0" + }, + "openapi": "3.0.0", + "paths": { + "/anything": { + "get": { + "operationId": "anythingGET", + "responses": { + "200": { + "description": "Successful response" + } + }, + "summary": "Return anything" + } + }, + "/delay": { + "get": { + "operationId": "delayGET", + "parameters": [ + { + "description": "Time to delay in seconds", + "in": "query", + "name": "delay", + "required": true, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "Successful response" + } + }, + "summary": "Delay response by a specified time" + } + }, + "/get": { + "get": { + "operationId": "getGET", + "responses": { + "200": { + "description": "Successful response" + } + }, + "summary": "Return GET request data" + } + }, + "/post": { + "post": { + "operationId": "postPOST", + "responses": { + "200": { + "description": "Successful response" + } + }, + "summary": "Return POST request data" + } + }, + "/status/{statusCode}": { + "get": { + "operationId": "status/{statusCode}GET", + "parameters": [ + { + "description": "HTTP status code", + "in": "path", + "name": "statusCode", + "required": true, + "schema": { + "format": "int32", + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "Successful response" + } + }, + "summary": "Return a response with the specified status code" + } + }, + "/uuid": { + "get": { + "operationId": "uuidGET", + "responses": { + "200": { + "description": "Successful response" + } + }, + "summary": "Return a UUID" + } + } + }, + "servers": [ + { + "url": "http://localhost:8181/api-with-cache" + } + ], + "x-tyk-api-gateway": { + "info": { + "dbId": "650c2c5286341f0f820173e0", + "id": "274fefb9a9a2468658c4c0895db82fb7", + "name": "API with Cache", + "orgId": "646490d486341f29c665c45c", + "state": { + "active": true + } + }, + "middleware": { + "operations": { + "anythingGET": { + "allow": { + "enabled": true + } + }, + "delayGET": { + "allow": { + "enabled": true + } + }, + "getGET": { + "allow": { + "enabled": true + } + }, + "postPOST": { + "allow": { + "enabled": true + } + }, + "status/{statusCode}GET": { + "allow": { + "enabled": true + } + }, + "uuidGET": { + "allow": { + "enabled": true + } + } + } + }, + "server": { + "listenPath": { + "strip": true, + "value": "/api-with-cache" + } + }, + "upstream": { + "url": "http://httpbin.org" + } + } +} \ No newline at end of file diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2cb686341f0f820173e1.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2cb686341f0f820173e1.json new file mode 100644 index 00000000..23aa8c7f --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2cb686341f0f820173e1.json @@ -0,0 +1,166 @@ +{ + "components": {}, + "info": { + "title": "httpbin API", + "version": "1.0.0" + }, + "openapi": "3.0.0", + "paths": { + "/anything": { + "get": { + "operationId": "anythingGET", + "responses": { + "200": { + "description": "Successful response" + } + }, + "summary": "Return anything" + } + }, + "/delay": { + "get": { + "operationId": "delayGET", + "parameters": [ + { + "description": "Time to delay in seconds", + "in": "query", + "name": "delay", + "required": true, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "Successful response" + } + }, + "summary": "Delay response by a specified time" + } + }, + "/get": { + "get": { + "operationId": "getGET", + "responses": { + "200": { + "description": "Successful response" + } + }, + "summary": "Return GET request data" + } + }, + "/post": { + "post": { + "operationId": "postPOST", + "responses": { + "200": { + "description": "Successful response" + } + }, + "summary": "Return POST request data" + } + }, + "/status/{statusCode}": { + "get": { + "operationId": "status/{statusCode}GET", + "parameters": [ + { + "description": "HTTP status code", + "in": "path", + "name": "statusCode", + "required": true, + "schema": { + "format": "int32", + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "Successful response" + } + }, + "summary": "Return a response with the specified status code" + } + }, + "/uuid": { + "get": { + "operationId": "uuidGET", + "responses": { + "200": { + "description": "Successful response" + } + }, + "summary": "Return a UUID" + } + } + }, + "servers": [ + { + "url": "http://localhost:8181/api-validate-request" + } + ], + "x-tyk-api-gateway": { + "info": { + "dbId": "650c2cb686341f0f820173e1", + "id": "2f506d14ad5c40ae6a73d172ae3224f5", + "name": "API with Validate Request", + "orgId": "646490d486341f29c665c45c", + "state": { + "active": true + } + }, + "middleware": { + "operations": { + "anythingGET": { + "allow": { + "enabled": true + } + }, + "delayGET": { + "allow": { + "enabled": true + }, + "validateRequest": { + "enabled": true, + "errorResponseCode": 422 + } + }, + "getGET": { + "allow": { + "enabled": true + } + }, + "postPOST": { + "allow": { + "enabled": true + } + }, + "status/{statusCode}GET": { + "allow": { + "enabled": true + }, + "validateRequest": { + "enabled": true, + "errorResponseCode": 422 + } + }, + "uuidGET": { + "allow": { + "enabled": true + } + } + } + }, + "server": { + "listenPath": { + "strip": true, + "value": "/api-validate-request" + } + }, + "upstream": { + "url": "http://httpbin.org" + } + } +} \ No newline at end of file diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2d5686341f0f820173e2.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2d5686341f0f820173e2.json new file mode 100644 index 00000000..5bdd853a --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2d5686341f0f820173e2.json @@ -0,0 +1,264 @@ +{ + "components": {}, + "info": { + "title": "httpbin API", + "version": "1.0.0" + }, + "openapi": "3.0.0", + "paths": { + "/anything": { + "get": { + "operationId": "anythingGET", + "responses": { + "200": { + "content": { + "text/plain": { + "example": "This is anything." + } + }, + "description": "Successful response" + } + }, + "summary": "Return anything" + } + }, + "/delay": { + "get": { + "operationId": "delayGET", + "parameters": [ + { + "description": "Time to delay in seconds", + "in": "query", + "name": "delay", + "required": true, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "args": { + "delay": 3 + }, + "headers": { + "Accept": "application/json", + "Host": "httpbin.org" + }, + "origin": "192.168.0.1", + "url": "https://httpbin.org/delay/3" + } + } + }, + "description": "Successful response" + } + }, + "summary": "Delay response by a specified time" + } + }, + "/get": { + "get": { + "operationId": "getGET", + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "args": {}, + "headers": { + "Accept": "application/json", + "Host": "httpbin.org" + }, + "origin": "192.168.0.1", + "url": "https://httpbin.org/get" + } + } + }, + "description": "Successful response" + } + }, + "summary": "Return GET request data" + } + }, + "/post": { + "post": { + "operationId": "postPOST", + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "args": {}, + "data": {}, + "files": {}, + "form": {}, + "headers": { + "Accept": "application/json", + "Content-Length": "0", + "Host": "httpbin.org" + }, + "json": null, + "url": "https://httpbin.org/post" + } + } + }, + "description": "Successful response" + } + }, + "summary": "Return POST request data" + } + }, + "/status/{statusCode}": { + "get": { + "operationId": "status/{statusCode}GET", + "parameters": [ + { + "description": "HTTP status code", + "in": "path", + "name": "statusCode", + "required": true, + "schema": { + "format": "int32", + "type": "integer" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "message": "This is a custom response with status code {statusCode}" + } + } + }, + "description": "Successful response with the specified status code" + } + }, + "summary": "Return a response with the specified status code" + } + }, + "/uuid": { + "get": { + "operationId": "uuidGET", + "responses": { + "200": { + "content": { + "text/plain": { + "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479" + } + }, + "description": "Successful response" + } + }, + "summary": "Return a UUID" + } + } + }, + "servers": [ + { + "url": "http://localhost:8181/api-with-mock-response" + } + ], + "x-tyk-api-gateway": { + "info": { + "dbId": "650c2d5686341f0f820173e2", + "id": "42dbc5245e87492a7ccb5a0432d37ec4", + "name": "API with Mock Response", + "orgId": "646490d486341f29c665c45c", + "state": { + "active": true + } + }, + "middleware": { + "operations": { + "anythingGET": { + "allow": { + "enabled": true + }, + "mockResponse": { + "enabled": true, + "fromOASExamples": { + "enabled": true + } + } + }, + "delayGET": { + "allow": { + "enabled": true + }, + "mockResponse": { + "enabled": true, + "fromOASExamples": { + "enabled": true + } + }, + "validateRequest": { + "enabled": true, + "errorResponseCode": 422 + } + }, + "getGET": { + "allow": { + "enabled": true + }, + "mockResponse": { + "enabled": true, + "fromOASExamples": { + "enabled": true + } + } + }, + "postPOST": { + "allow": { + "enabled": true + }, + "mockResponse": { + "enabled": true, + "fromOASExamples": { + "enabled": true + } + } + }, + "status/{statusCode}GET": { + "allow": { + "enabled": true + }, + "mockResponse": { + "enabled": true, + "fromOASExamples": { + "enabled": true + } + }, + "validateRequest": { + "enabled": true, + "errorResponseCode": 422 + } + }, + "uuidGET": { + "allow": { + "enabled": true + }, + "mockResponse": { + "enabled": true, + "fromOASExamples": { + "enabled": true + } + } + } + } + }, + "server": { + "listenPath": { + "strip": true, + "value": "/api-with-mock-response" + } + }, + "upstream": { + "url": "http://httpbin.org" + } + } +} \ No newline at end of file diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2dcf86341f0f820173e3.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2dcf86341f0f820173e3.json new file mode 100644 index 00000000..572197f6 --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2dcf86341f0f820173e3.json @@ -0,0 +1,241 @@ +{ + "components": { + "securitySchemes": { + "apiKey": { + "in": "header", + "name": "Authrization", + "type": "apiKey" + } + } + }, + "info": { + "title": "httpbin API", + "version": "1.0.0" + }, + "openapi": "3.0.0", + "paths": { + "/anything": { + "get": { + "operationId": "anythingGET", + "responses": { + "200": { + "content": { + "text/plain": { + "example": "This is anything." + } + }, + "description": "Successful response" + } + }, + "summary": "Return anything" + } + }, + "/delay": { + "get": { + "operationId": "delayGET", + "parameters": [ + { + "description": "Time to delay in seconds", + "in": "query", + "name": "delay", + "required": true, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "args": { + "delay": 3 + }, + "headers": { + "Accept": "application/json", + "Host": "httpbin.org" + }, + "origin": "192.168.0.1", + "url": "https://httpbin.org/delay/3" + } + } + }, + "description": "Successful response" + } + }, + "summary": "Delay response by a specified time" + } + }, + "/get": { + "get": { + "operationId": "getGET", + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "args": {}, + "headers": { + "Accept": "application/json", + "Host": "httpbin.org" + }, + "origin": "192.168.0.1", + "url": "https://httpbin.org/get" + } + } + }, + "description": "Successful response" + } + }, + "summary": "Return GET request data" + } + }, + "/post": { + "post": { + "operationId": "postPOST", + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "args": {}, + "data": {}, + "files": {}, + "form": {}, + "headers": { + "Accept": "application/json", + "Content-Length": "0", + "Host": "httpbin.org" + }, + "json": null, + "url": "https://httpbin.org/post" + } + } + }, + "description": "Successful response" + } + }, + "summary": "Return POST request data" + } + }, + "/status/{statusCode}": { + "get": { + "operationId": "status/{statusCode}GET", + "parameters": [ + { + "description": "HTTP status code", + "in": "path", + "name": "statusCode", + "required": true, + "schema": { + "format": "int32", + "type": "integer" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "message": "This is a custom response with status code {statusCode}" + } + } + }, + "description": "Successful response with the specified status code" + } + }, + "summary": "Return a response with the specified status code" + } + }, + "/uuid": { + "get": { + "operationId": "uuidGET", + "responses": { + "200": { + "content": { + "text/plain": { + "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479" + } + }, + "description": "Successful response" + } + }, + "summary": "Return a UUID" + } + } + }, + "security": [ + { + "apiKey": [] + } + ], + "servers": [ + { + "url": "http://localhost:8181/api-with-auth-token" + } + ], + "x-tyk-api-gateway": { + "info": { + "dbId": "650c2dcf86341f0f820173e3", + "id": "b45a8f243a6a468566b0d0ff34747c0c", + "name": "API with Authentication Token", + "orgId": "646490d486341f29c665c45c", + "state": { + "active": true + } + }, + "middleware": { + "operations": { + "anythingGET": { + "allow": { + "enabled": true + } + }, + "delayGET": { + "allow": { + "enabled": true + } + }, + "getGET": { + "allow": { + "enabled": true + } + }, + "postPOST": { + "allow": { + "enabled": true + } + }, + "status/{statusCode}GET": { + "allow": { + "enabled": true + } + }, + "uuidGET": { + "allow": { + "enabled": true + } + } + } + }, + "server": { + "authentication": { + "enabled": true, + "securitySchemes": { + "apiKey": { + "enabled": true + } + } + }, + "listenPath": { + "strip": true, + "value": "/api-with-auth-token" + } + }, + "upstream": { + "url": "http://httpbin.org" + } + } +} \ No newline at end of file diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2e1c86341f0f820173e4.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2e1c86341f0f820173e4.json new file mode 100644 index 00000000..0b23981f --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2e1c86341f0f820173e4.json @@ -0,0 +1,308 @@ +{ + "components": { + "securitySchemes": { + "apiKey": { + "in": "header", + "name": "api_key", + "type": "apiKey" + } + } + }, + "info": { + "title": "httpbin API", + "version": "1.0.0" + }, + "openapi": "3.0.0", + "paths": { + "/anything": { + "get": { + "operationId": "anythingGET", + "responses": { + "200": { + "content": { + "text/plain": { + "example": "This is anything." + } + }, + "description": "Successful response" + } + }, + "summary": "Return anything" + } + }, + "/delay": { + "get": { + "operationId": "delayGET", + "parameters": [ + { + "description": "Time to delay in seconds", + "in": "query", + "name": "delay", + "required": true, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "args": { + "delay": 3 + }, + "headers": { + "Accept": "application/json", + "Host": "httpbin.org" + }, + "origin": "192.168.0.1", + "url": "https://httpbin.org/delay/3" + } + } + }, + "description": "Successful response" + } + }, + "summary": "Delay response by a specified time" + } + }, + "/get": { + "get": { + "operationId": "getGET", + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "args": {}, + "headers": { + "Accept": "application/json", + "Host": "httpbin.org" + }, + "origin": "192.168.0.1", + "url": "https://httpbin.org/get" + } + } + }, + "description": "Successful response" + } + }, + "summary": "Return GET request data" + } + }, + "/post": { + "post": { + "operationId": "postPOST", + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "args": {}, + "data": {}, + "files": {}, + "form": {}, + "headers": { + "Accept": "application/json", + "Content-Length": "0", + "Host": "httpbin.org" + }, + "json": null, + "url": "https://httpbin.org/post" + } + } + }, + "description": "Successful response" + } + }, + "summary": "Return POST request data" + } + }, + "/status/{statusCode}": { + "get": { + "operationId": "status/{statusCode}GET", + "parameters": [ + { + "description": "HTTP status code", + "in": "path", + "name": "statusCode", + "required": true, + "schema": { + "format": "int32", + "type": "integer" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "message": "This is a custom response with status code {statusCode}" + } + } + }, + "description": "Successful response with the specified status code" + } + }, + "summary": "Return a response with the specified status code" + } + }, + "/uuid": { + "get": { + "operationId": "uuidGET", + "responses": { + "200": { + "content": { + "text/plain": { + "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479" + } + }, + "description": "Successful response" + } + }, + "summary": "Return a UUID" + } + } + }, + "security": [ + { + "apiKey": [] + } + ], + "servers": [ + { + "url": "http://localhost:8181/api-with-multi-middleware" + } + ], + "x-tyk-api-gateway": { + "info": { + "dbId": "650c2e1c86341f0f820173e4", + "id": "dcb1ae9a2d5a47cb426526f06eebafcd", + "name": "API with multiple middleware", + "orgId": "646490d486341f29c665c45c", + "state": { + "active": true + } + }, + "middleware": { + "global": { + "cache": { + "enabled": true, + "timeout": 60 + } + }, + "operations": { + "anythingGET": { + "allow": { + "enabled": true + }, + "mockResponse": { + "enabled": true, + "fromOASExamples": { + "code": 200, + "enabled": true + } + } + }, + "delayGET": { + "allow": { + "enabled": true + }, + "mockResponse": { + "enabled": true, + "fromOASExamples": { + "code": 200, + "contentType": "application/json", + "enabled": true + } + }, + "validateRequest": { + "enabled": true, + "errorResponseCode": 422 + } + }, + "getGET": { + "allow": { + "enabled": true + }, + "mockResponse": { + "enabled": true, + "fromOASExamples": { + "code": 200, + "contentType": "application/json", + "enabled": true + } + } + }, + "postPOST": { + "allow": { + "enabled": true + }, + "mockResponse": { + "enabled": true, + "fromOASExamples": { + "code": 200, + "contentType": "application/json", + "enabled": true + } + } + }, + "status/{statusCode}GET": { + "allow": { + "enabled": true + }, + "mockResponse": { + "enabled": true, + "fromOASExamples": { + "code": 200, + "contentType": "application/json", + "enabled": true + } + }, + "validateRequest": { + "enabled": true, + "errorResponseCode": 422 + } + }, + "uuidGET": { + "allow": { + "enabled": true + }, + "cache": { + "cacheResponseCodes": [ + 200 + ], + "enabled": true, + "timeout": 5 + }, + "mockResponse": { + "enabled": true, + "fromOASExamples": { + "code": 200, + "enabled": true + } + } + } + } + }, + "server": { + "authentication": { + "enabled": true, + "securitySchemes": { + "apiKey": { + "enabled": true + } + } + }, + "listenPath": { + "strip": true, + "value": "/api-with-multi-middleware" + } + }, + "upstream": { + "url": "http://httpbin.org" + } + } +} \ No newline at end of file diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2f1786341f0f820173e6.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2f1786341f0f820173e6.json new file mode 100644 index 00000000..51db88a3 --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2f1786341f0f820173e6.json @@ -0,0 +1,222 @@ +{ + "components": { + "securitySchemes": { + "apiKey": { + "in": "header", + "name": "api_key", + "type": "apiKey" + } + } + }, + "info": { + "title": "httpbin API", + "version": "1.0.0" + }, + "openapi": "3.0.0", + "paths": { + "/anything": { + "get": { + "operationId": "anythingGET", + "responses": { + "200": { + "content": { + "text/plain": { + "example": "This is anything." + } + }, + "description": "Successful response" + } + }, + "summary": "Return anything" + } + }, + "/delay": { + "get": { + "operationId": "delayGET", + "parameters": [ + { + "description": "Time to delay in seconds", + "in": "query", + "name": "delay", + "required": true, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "args": { + "delay": 3 + }, + "headers": { + "Accept": "application/json", + "Host": "httpbin.org" + }, + "origin": "192.168.0.1", + "url": "https://httpbin.org/delay/3" + } + } + }, + "description": "Successful response" + } + }, + "summary": "Delay response by a specified time" + } + }, + "/get": { + "get": { + "operationId": "getGET", + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "args": {}, + "headers": { + "Accept": "application/json", + "Host": "httpbin.org" + }, + "origin": "192.168.0.1", + "url": "https://httpbin.org/get" + } + } + }, + "description": "Successful response" + } + }, + "summary": "Return GET request data" + } + }, + "/post": { + "post": { + "operationId": "postPOST", + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "args": {}, + "data": {}, + "files": {}, + "form": {}, + "headers": { + "Accept": "application/json", + "Content-Length": "0", + "Host": "httpbin.org" + }, + "json": null, + "url": "https://httpbin.org/post" + } + } + }, + "description": "Successful response" + } + }, + "summary": "Return POST request data" + } + }, + "/status/{statusCode}": { + "get": { + "operationId": "status/{statusCode}GET", + "parameters": [ + { + "description": "HTTP status code", + "in": "path", + "name": "statusCode", + "required": true, + "schema": { + "format": "int32", + "type": "integer" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "message": "This is a custom response with status code {statusCode}" + } + } + }, + "description": "Successful response with the specified status code" + } + }, + "summary": "Return a response with the specified status code" + } + }, + "/uuid": { + "get": { + "operationId": "uuidGET", + "responses": { + "200": { + "content": { + "text/plain": { + "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479" + } + }, + "description": "Successful response" + } + }, + "summary": "Return a UUID" + } + } + }, + "security": [ + { + "apiKey": [] + } + ], + "servers": [ + { + "url": "http://localhost:8181/api-with-cors" + } + ], + "x-tyk-api-gateway": { + "info": { + "dbId": "650c2f1786341f0f820173e6", + "id": "42bfdc1097144ef6413f582ca8f94f52", + "name": "API with CORS", + "orgId": "646490d486341f29c665c45c", + "state": { + "active": true + } + }, + "middleware": { + "global": { + "cors": { + "allowedHeaders": [ + "Accept", + "Content-Type", + "Origin", + "X-Requested-With", + "Authorization" + ], + "allowedMethods": [ + "GET", + "HEAD", + "POST" + ], + "allowedOrigins": [ + "*" + ], + "enabled": true, + "maxAge": 24 + } + } + }, + "server": { + "listenPath": { + "strip": true, + "value": "/api-with-cors" + } + }, + "upstream": { + "url": "http://httpbin.org" + } + } +} \ No newline at end of file diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2f6486341f0f820173e7.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2f6486341f0f820173e7.json new file mode 100644 index 00000000..6783225e --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2f6486341f0f820173e7.json @@ -0,0 +1,238 @@ +{ + "components": { + "securitySchemes": { + "apiKey": { + "in": "header", + "name": "api_key", + "type": "apiKey" + } + } + }, + "info": { + "title": "httpbin API", + "version": "1.0.0" + }, + "openapi": "3.0.0", + "paths": { + "/anything": { + "get": { + "operationId": "anythingGET", + "responses": { + "200": { + "content": { + "text/plain": { + "example": "This is anything." + } + }, + "description": "Successful response" + } + }, + "summary": "Return anything" + } + }, + "/delay": { + "get": { + "operationId": "delayGET", + "parameters": [ + { + "description": "Time to delay in seconds", + "in": "query", + "name": "delay", + "required": true, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "args": { + "delay": 3 + }, + "headers": { + "Accept": "application/json", + "Host": "httpbin.org" + }, + "origin": "192.168.0.1", + "url": "https://httpbin.org/delay/3" + } + } + }, + "description": "Successful response" + } + }, + "summary": "Delay response by a specified time" + } + }, + "/get": { + "get": { + "operationId": "getGET", + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "args": {}, + "headers": { + "Accept": "application/json", + "Host": "httpbin.org" + }, + "origin": "192.168.0.1", + "url": "https://httpbin.org/get" + } + } + }, + "description": "Successful response" + } + }, + "summary": "Return GET request data" + } + }, + "/post": { + "post": { + "operationId": "postPOST", + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "args": {}, + "data": {}, + "files": {}, + "form": {}, + "headers": { + "Accept": "application/json", + "Content-Length": "0", + "Host": "httpbin.org" + }, + "json": null, + "url": "https://httpbin.org/post" + } + } + }, + "description": "Successful response" + } + }, + "summary": "Return POST request data" + } + }, + "/status/{statusCode}": { + "get": { + "operationId": "status/{statusCode}GET", + "parameters": [ + { + "description": "HTTP status code", + "in": "path", + "name": "statusCode", + "required": true, + "schema": { + "format": "int32", + "type": "integer" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "message": "This is a custom response with status code {statusCode}" + } + } + }, + "description": "Successful response with the specified status code" + } + }, + "summary": "Return a response with the specified status code" + } + }, + "/uuid": { + "get": { + "operationId": "uuidGET", + "responses": { + "200": { + "content": { + "text/plain": { + "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479" + } + }, + "description": "Successful response" + } + }, + "summary": "Return a UUID" + } + } + }, + "security": [ + { + "apiKey": [] + } + ], + "servers": [ + { + "url": "http://localhost:8181/api-with-response-body" + } + ], + "x-tyk-api-gateway": { + "info": { + "dbId": "650c2f6486341f0f820173e7", + "id": "89f1315059bc45594e731ec3b18c8cc8", + "name": "API with Response Body", + "orgId": "646490d486341f29c665c45c", + "state": { + "active": true + } + }, + "middleware": { + "operations": { + "anythingGET": { + "allow": { + "enabled": true + }, + "transformResponseBody": { + "body": "ewogICAgImhvc3QiOiB7eyAuaGVhZGVycy5Ib3N0IH19Cn0=", + "enabled": true, + "format": "json" + } + }, + "delayGET": { + "allow": { + "enabled": true + } + }, + "getGET": { + "allow": { + "enabled": true + } + }, + "postPOST": { + "allow": { + "enabled": true + } + }, + "status/{statusCode}GET": { + "allow": { + "enabled": true + } + }, + "uuidGET": { + "allow": { + "enabled": true + } + } + } + }, + "server": { + "listenPath": { + "strip": true, + "value": "/api-with-response-body" + } + }, + "upstream": { + "url": "http://httpbin.org" + } + } +} \ No newline at end of file diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c30e5a1ed7e6c97e78b62.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c30e5a1ed7e6c97e78b62.json new file mode 100644 index 00000000..e1902d10 --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c30e5a1ed7e6c97e78b62.json @@ -0,0 +1,96 @@ +{ + "components": { + "securitySchemes": { + "authToken": { + "in": "header", + "name": "Authorization", + "type": "apiKey" + } + } + }, + "info": { + "title": "Basic Protected API", + "version": "Default" + }, + "openapi": "3.0.6", + "paths": { + "/anything/ignored": { + "get": { + "operationId": "anything/ignoredGET", + "responses": { + "default": { + "description": "" + } + } + } + } + }, + "security": [ + { + "authToken": [] + } + ], + "x-tyk-api-gateway": { + "info": { + "dbId": "650c30e5a1ed7e6c97e78b62", + "id": "e653474b5049417e532e08e4e33ed19b", + "name": "Basic Protected API", + "orgId": "650c04faa1ed7e7420871360", + "state": { + "active": true + } + }, + "middleware": { + "global": { + "cache": { + "enabled": true, + "timeout": 60 + }, + "cors": { + "enabled": false, + "maxAge": 24 + } + }, + "operations": { + "anything/ignoredGET": { + "ignoreAuthentication": { + "enabled": true + } + } + } + }, + "server": { + "authentication": { + "enabled": true, + "securitySchemes": { + "authToken": { + "enabled": true + } + } + }, + "listenPath": { + "strip": true, + "value": "/oas-basic-protected-api/" + }, + "slug": "basic-protected-api" + }, + "upstream": { + "serviceDiscovery": { + "cache": { + "enabled": true + }, + "enabled": false + }, + "test": { + "serviceDiscovery": { + "cache": { + "enabled": true, + "timeout": 60 + }, + "enabled": false + } + }, + "url": "http://httpbin/" + } + } +} \ No newline at end of file diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c3132a1ed7e6c97e78b63.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c3132a1ed7e6c97e78b63.json new file mode 100644 index 00000000..f1452c7f --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c3132a1ed7e6c97e78b63.json @@ -0,0 +1,63 @@ +{ + "components": {}, + "info": { + "title": "Basic Open API", + "version": "Default" + }, + "openapi": "3.0.6", + "paths": {}, + "x-tyk-api-gateway": { + "info": { + "dbId": "650c3132a1ed7e6c97e78b63", + "id": "78d13a71db89414651090ef4753c1473", + "name": "Basic Open API", + "orgId": "650c04faa1ed7e7420871360", + "state": { + "active": true + } + }, + "middleware": { + "global": { + "cache": { + "enabled": true, + "timeout": 60 + }, + "cors": { + "enabled": false, + "maxAge": 24 + } + } + }, + "server": { + "gatewayTags": { + "enabled": true, + "tags": [ + "tyk-gateway-2" + ] + }, + "listenPath": { + "strip": true, + "value": "/oas-basic-open-api/" + }, + "slug": "basic-open-api" + }, + "upstream": { + "serviceDiscovery": { + "cache": { + "enabled": true + }, + "enabled": false + }, + "test": { + "serviceDiscovery": { + "cache": { + "enabled": true, + "timeout": 60 + }, + "enabled": false + } + }, + "url": "http://httpbin/" + } + } +} \ No newline at end of file diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c327aa1ed7e6c97e78b64.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c327aa1ed7e6c97e78b64.json new file mode 100644 index 00000000..123fce10 --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c327aa1ed7e6c97e78b64.json @@ -0,0 +1,98 @@ +{ + "components": { + "securitySchemes": { + "jwt": { + "bearerFormat": "JWT", + "scheme": "bearer", + "type": "http" + } + } + }, + "info": { + "title": "JWT API", + "version": "Default" + }, + "openapi": "3.0.6", + "paths": {}, + "security": [ + { + "jwt": [] + } + ], + "x-tyk-api-gateway": { + "info": { + "dbId": "650c327aa1ed7e6c97e78b64", + "id": "612180d8b3ca42eb5cb7d976d93c3e2a", + "name": "JWT API", + "orgId": "650c04faa1ed7e7420871360", + "state": { + "active": true + } + }, + "middleware": { + "global": { + "cache": { + "enabled": true, + "timeout": 60 + }, + "cors": { + "enabled": false, + "maxAge": 24 + } + } + }, + "server": { + "authentication": { + "enabled": true, + "securitySchemes": { + "jwt": { + "defaultPolicies": [ + "5ead72955759610001818688" + ], + "enabled": true, + "header": { + "enabled": true, + "name": "Authorization" + }, + "identityBaseField": "sub", + "policyFieldName": "pol", + "scopes": { + "claimName": "policy_claim", + "scopeToPolicyMapping": [ + { + "policyId": "5ead73565759610001818689", + "scope": "restricted" + } + ] + }, + "signingMethod": "hmac", + "source": "c2VjcmV0" + } + } + }, + "listenPath": { + "strip": true, + "value": "/oas-jwt-api/" + }, + "slug": "jwt-api" + }, + "upstream": { + "serviceDiscovery": { + "cache": { + "enabled": true + }, + "enabled": false + }, + "test": { + "serviceDiscovery": { + "cache": { + "enabled": true, + "timeout": 60 + }, + "enabled": false + } + }, + "url": "http://httpbin/" + } + } +} \ No newline at end of file diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c32a2a1ed7e6c97e78b65.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c32a2a1ed7e6c97e78b65.json new file mode 100644 index 00000000..f343c0f8 --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c32a2a1ed7e6c97e78b65.json @@ -0,0 +1,84 @@ +{ + "components": {}, + "info": { + "title": "JavaScript Middleware API", + "version": "Default" + }, + "openapi": "3.0.6", + "paths": {}, + "x-tyk-api-gateway": { + "info": { + "dbId": "650c32a2a1ed7e6c97e78b65", + "id": "12723356fe644651737a14adf85e6c04", + "name": "JavaScript Middleware API", + "orgId": "650c04faa1ed7e7420871360", + "state": { + "active": true + } + }, + "middleware": { + "global": { + "cache": { + "enabled": true, + "timeout": 60 + }, + "cors": { + "enabled": false, + "maxAge": 24 + }, + "pluginConfig": { + "data": { + "enabled": true, + "value": { + "config_key": "config-value" + } + }, + "driver": "otto" + }, + "postPlugin": { + "plugins": [ + { + "enabled": true, + "functionName": "exampleJavaScriptMiddlewarePostHook", + "path": "middleware/example-javascript-middleware.js" + } + ] + }, + "prePlugin": { + "plugins": [ + { + "enabled": true, + "functionName": "exampleJavaScriptMiddlewarePreHook", + "path": "middleware/example-javascript-middleware.js" + } + ] + } + } + }, + "server": { + "listenPath": { + "strip": true, + "value": "/oas-javascript-middleware-api/" + }, + "slug": "javascript-middleware-api" + }, + "upstream": { + "serviceDiscovery": { + "cache": { + "enabled": true + }, + "enabled": false + }, + "test": { + "serviceDiscovery": { + "cache": { + "enabled": true, + "timeout": 60 + }, + "enabled": false + } + }, + "url": "http://httpbin/" + } + } +} \ No newline at end of file diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c32faa1ed7e6c97e78b67.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c32faa1ed7e6c97e78b67.json new file mode 100644 index 00000000..a9dce888 --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c32faa1ed7e6c97e78b67.json @@ -0,0 +1,81 @@ +{ + "components": { + "securitySchemes": { + "basic": { + "scheme": "basic", + "type": "http" + } + } + }, + "info": { + "title": "Basic Authentication API", + "version": "Default" + }, + "openapi": "3.0.6", + "paths": {}, + "security": [ + { + "basic": [] + } + ], + "x-tyk-api-gateway": { + "info": { + "dbId": "650c32faa1ed7e6c97e78b67", + "id": "430698beeb9c483858071e4fad1c8259", + "name": "Basic Authentication API", + "orgId": "650c04faa1ed7e7420871360", + "state": { + "active": true + } + }, + "middleware": { + "global": { + "cache": { + "enabled": true, + "timeout": 60 + }, + "cors": { + "enabled": false, + "maxAge": 24 + } + } + }, + "server": { + "authentication": { + "enabled": true, + "securitySchemes": { + "basic": { + "enabled": true, + "header": { + "enabled": true, + "name": "Authorization" + } + } + } + }, + "listenPath": { + "strip": true, + "value": "/oas-basic-authentication-api/" + }, + "slug": "basic-authentication-api" + }, + "upstream": { + "serviceDiscovery": { + "cache": { + "enabled": true + }, + "enabled": false + }, + "test": { + "serviceDiscovery": { + "cache": { + "enabled": true, + "timeout": 60 + }, + "enabled": false + } + }, + "url": "http://httpbin/" + } + } +} \ No newline at end of file