From b5891c7802e1cab2c9330ba981cbc05864a84043 Mon Sep 17 00:00:00 2001 From: lghiur Date: Thu, 21 Sep 2023 15:10:00 +0300 Subject: [PATCH 1/3] Added more OAS examples --- ...-oas-274fefb9a9a2468658c4c0895db82fb7.json | 158 +++++++++ ...-oas-2f506d14ad5c40ae6a73d172ae3224f5.json | 166 ++++++++++ ...-oas-42bfdc1097144ef6413f582ca8f94f52.json | 222 +++++++++++++ ...-oas-42dbc5245e87492a7ccb5a0432d37ec4.json | 264 +++++++++++++++ ...-oas-89f1315059bc45594e731ec3b18c8cc8.json | 238 ++++++++++++++ ...-oas-b45a8f243a6a468566b0d0ff34747c0c.json | 241 ++++++++++++++ ...-oas-dcb1ae9a2d5a47cb426526f06eebafcd.json | 308 ++++++++++++++++++ 7 files changed, 1597 insertions(+) create mode 100644 deployments/tyk/data/tyk-dashboard/1/apis/api-oas-274fefb9a9a2468658c4c0895db82fb7.json create mode 100644 deployments/tyk/data/tyk-dashboard/1/apis/api-oas-2f506d14ad5c40ae6a73d172ae3224f5.json create mode 100644 deployments/tyk/data/tyk-dashboard/1/apis/api-oas-42bfdc1097144ef6413f582ca8f94f52.json create mode 100644 deployments/tyk/data/tyk-dashboard/1/apis/api-oas-42dbc5245e87492a7ccb5a0432d37ec4.json create mode 100644 deployments/tyk/data/tyk-dashboard/1/apis/api-oas-89f1315059bc45594e731ec3b18c8cc8.json create mode 100644 deployments/tyk/data/tyk-dashboard/1/apis/api-oas-b45a8f243a6a468566b0d0ff34747c0c.json create mode 100644 deployments/tyk/data/tyk-dashboard/1/apis/api-oas-dcb1ae9a2d5a47cb426526f06eebafcd.json diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-274fefb9a9a2468658c4c0895db82fb7.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-274fefb9a9a2468658c4c0895db82fb7.json new file mode 100644 index 00000000..da9f7c73 --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-274fefb9a9a2468658c4c0895db82fb7.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": "httpbin API", + "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-2f506d14ad5c40ae6a73d172ae3224f5.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-2f506d14ad5c40ae6a73d172ae3224f5.json new file mode 100644 index 00000000..e38bbeea --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-2f506d14ad5c40ae6a73d172ae3224f5.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": "httpbin API", + "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-42bfdc1097144ef6413f582ca8f94f52.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-42bfdc1097144ef6413f582ca8f94f52.json new file mode 100644 index 00000000..0c44f4e8 --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-42bfdc1097144ef6413f582ca8f94f52.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": "httpbin API", + "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-42dbc5245e87492a7ccb5a0432d37ec4.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-42dbc5245e87492a7ccb5a0432d37ec4.json new file mode 100644 index 00000000..fee1906e --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-42dbc5245e87492a7ccb5a0432d37ec4.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": "httpbin API", + "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-89f1315059bc45594e731ec3b18c8cc8.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-89f1315059bc45594e731ec3b18c8cc8.json new file mode 100644 index 00000000..c9c77fee --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-89f1315059bc45594e731ec3b18c8cc8.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": "httpbin API", + "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-b45a8f243a6a468566b0d0ff34747c0c.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-b45a8f243a6a468566b0d0ff34747c0c.json new file mode 100644 index 00000000..a3e1718b --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-b45a8f243a6a468566b0d0ff34747c0c.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": "httpbin API", + "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-dcb1ae9a2d5a47cb426526f06eebafcd.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-dcb1ae9a2d5a47cb426526f06eebafcd.json new file mode 100644 index 00000000..62134d3f --- /dev/null +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-dcb1ae9a2d5a47cb426526f06eebafcd.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": "httpbin API", + "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 From dd3ab0fd68e673bade9fdddfc700a82d6e6d1da0 Mon Sep 17 00:00:00 2001 From: lghiur Date: Thu, 21 Sep 2023 15:28:47 +0300 Subject: [PATCH 2/3] used the db id in the OAS API Definition file names --- ...4c0895db82fb7.json => api-oas-650c2c5286341f0f820173e0.json} | 2 +- ...3d172ae3224f5.json => api-oas-650c2cb686341f0f820173e1.json} | 2 +- ...b5a0432d37ec4.json => api-oas-650c2d5686341f0f820173e2.json} | 2 +- ...0d0ff34747c0c.json => api-oas-650c2dcf86341f0f820173e3.json} | 2 +- ...526f06eebafcd.json => api-oas-650c2e1c86341f0f820173e4.json} | 2 +- ...f582ca8f94f52.json => api-oas-650c2f1786341f0f820173e6.json} | 2 +- ...31ec3b18c8cc8.json => api-oas-650c2f6486341f0f820173e7.json} | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) rename deployments/tyk/data/tyk-dashboard/1/apis/{api-oas-274fefb9a9a2468658c4c0895db82fb7.json => api-oas-650c2c5286341f0f820173e0.json} (99%) rename deployments/tyk/data/tyk-dashboard/1/apis/{api-oas-2f506d14ad5c40ae6a73d172ae3224f5.json => api-oas-650c2cb686341f0f820173e1.json} (98%) rename deployments/tyk/data/tyk-dashboard/1/apis/{api-oas-42dbc5245e87492a7ccb5a0432d37ec4.json => api-oas-650c2d5686341f0f820173e2.json} (99%) rename deployments/tyk/data/tyk-dashboard/1/apis/{api-oas-b45a8f243a6a468566b0d0ff34747c0c.json => api-oas-650c2dcf86341f0f820173e3.json} (99%) rename deployments/tyk/data/tyk-dashboard/1/apis/{api-oas-dcb1ae9a2d5a47cb426526f06eebafcd.json => api-oas-650c2e1c86341f0f820173e4.json} (99%) rename deployments/tyk/data/tyk-dashboard/1/apis/{api-oas-42bfdc1097144ef6413f582ca8f94f52.json => api-oas-650c2f1786341f0f820173e6.json} (99%) rename deployments/tyk/data/tyk-dashboard/1/apis/{api-oas-89f1315059bc45594e731ec3b18c8cc8.json => api-oas-650c2f6486341f0f820173e7.json} (99%) diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-274fefb9a9a2468658c4c0895db82fb7.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2c5286341f0f820173e0.json similarity index 99% rename from deployments/tyk/data/tyk-dashboard/1/apis/api-oas-274fefb9a9a2468658c4c0895db82fb7.json rename to deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2c5286341f0f820173e0.json index da9f7c73..bf584f27 100644 --- a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-274fefb9a9a2468658c4c0895db82fb7.json +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2c5286341f0f820173e0.json @@ -105,7 +105,7 @@ "info": { "dbId": "650c2c5286341f0f820173e0", "id": "274fefb9a9a2468658c4c0895db82fb7", - "name": "httpbin API", + "name": "API with Cache", "orgId": "646490d486341f29c665c45c", "state": { "active": true diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-2f506d14ad5c40ae6a73d172ae3224f5.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2cb686341f0f820173e1.json similarity index 98% rename from deployments/tyk/data/tyk-dashboard/1/apis/api-oas-2f506d14ad5c40ae6a73d172ae3224f5.json rename to deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2cb686341f0f820173e1.json index e38bbeea..23aa8c7f 100644 --- a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-2f506d14ad5c40ae6a73d172ae3224f5.json +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2cb686341f0f820173e1.json @@ -105,7 +105,7 @@ "info": { "dbId": "650c2cb686341f0f820173e1", "id": "2f506d14ad5c40ae6a73d172ae3224f5", - "name": "httpbin API", + "name": "API with Validate Request", "orgId": "646490d486341f29c665c45c", "state": { "active": true diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-42dbc5245e87492a7ccb5a0432d37ec4.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2d5686341f0f820173e2.json similarity index 99% rename from deployments/tyk/data/tyk-dashboard/1/apis/api-oas-42dbc5245e87492a7ccb5a0432d37ec4.json rename to deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2d5686341f0f820173e2.json index fee1906e..5bdd853a 100644 --- a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-42dbc5245e87492a7ccb5a0432d37ec4.json +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2d5686341f0f820173e2.json @@ -167,7 +167,7 @@ "info": { "dbId": "650c2d5686341f0f820173e2", "id": "42dbc5245e87492a7ccb5a0432d37ec4", - "name": "httpbin API", + "name": "API with Mock Response", "orgId": "646490d486341f29c665c45c", "state": { "active": true diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-b45a8f243a6a468566b0d0ff34747c0c.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2dcf86341f0f820173e3.json similarity index 99% rename from deployments/tyk/data/tyk-dashboard/1/apis/api-oas-b45a8f243a6a468566b0d0ff34747c0c.json rename to deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2dcf86341f0f820173e3.json index a3e1718b..572197f6 100644 --- a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-b45a8f243a6a468566b0d0ff34747c0c.json +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2dcf86341f0f820173e3.json @@ -180,7 +180,7 @@ "info": { "dbId": "650c2dcf86341f0f820173e3", "id": "b45a8f243a6a468566b0d0ff34747c0c", - "name": "httpbin API", + "name": "API with Authentication Token", "orgId": "646490d486341f29c665c45c", "state": { "active": true diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-dcb1ae9a2d5a47cb426526f06eebafcd.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2e1c86341f0f820173e4.json similarity index 99% rename from deployments/tyk/data/tyk-dashboard/1/apis/api-oas-dcb1ae9a2d5a47cb426526f06eebafcd.json rename to deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2e1c86341f0f820173e4.json index 62134d3f..0b23981f 100644 --- a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-dcb1ae9a2d5a47cb426526f06eebafcd.json +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2e1c86341f0f820173e4.json @@ -180,7 +180,7 @@ "info": { "dbId": "650c2e1c86341f0f820173e4", "id": "dcb1ae9a2d5a47cb426526f06eebafcd", - "name": "httpbin API", + "name": "API with multiple middleware", "orgId": "646490d486341f29c665c45c", "state": { "active": true diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-42bfdc1097144ef6413f582ca8f94f52.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2f1786341f0f820173e6.json similarity index 99% rename from deployments/tyk/data/tyk-dashboard/1/apis/api-oas-42bfdc1097144ef6413f582ca8f94f52.json rename to deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2f1786341f0f820173e6.json index 0c44f4e8..51db88a3 100644 --- a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-42bfdc1097144ef6413f582ca8f94f52.json +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2f1786341f0f820173e6.json @@ -180,7 +180,7 @@ "info": { "dbId": "650c2f1786341f0f820173e6", "id": "42bfdc1097144ef6413f582ca8f94f52", - "name": "httpbin API", + "name": "API with CORS", "orgId": "646490d486341f29c665c45c", "state": { "active": true diff --git a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-89f1315059bc45594e731ec3b18c8cc8.json b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2f6486341f0f820173e7.json similarity index 99% rename from deployments/tyk/data/tyk-dashboard/1/apis/api-oas-89f1315059bc45594e731ec3b18c8cc8.json rename to deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2f6486341f0f820173e7.json index c9c77fee..6783225e 100644 --- a/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-89f1315059bc45594e731ec3b18c8cc8.json +++ b/deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c2f6486341f0f820173e7.json @@ -180,7 +180,7 @@ "info": { "dbId": "650c2f6486341f0f820173e7", "id": "89f1315059bc45594e731ec3b18c8cc8", - "name": "httpbin API", + "name": "API with Response Body", "orgId": "646490d486341f29c665c45c", "state": { "active": true From 0330b55b483c5cb3cee0f0563f14ce530a25a1f4 Mon Sep 17 00:00:00 2001 From: jeff Date: Thu, 21 Sep 2023 15:29:18 +0300 Subject: [PATCH 3/3] convert classic to oas --- .../api-oas-650c30e5a1ed7e6c97e78b62.json | 96 ++++++++++++++++++ .../api-oas-650c3132a1ed7e6c97e78b63.json | 63 ++++++++++++ .../api-oas-650c327aa1ed7e6c97e78b64.json | 98 +++++++++++++++++++ .../api-oas-650c32a2a1ed7e6c97e78b65.json | 84 ++++++++++++++++ .../api-oas-650c32faa1ed7e6c97e78b67.json | 81 +++++++++++++++ 5 files changed, 422 insertions(+) create mode 100644 deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c30e5a1ed7e6c97e78b62.json create mode 100644 deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c3132a1ed7e6c97e78b63.json create mode 100644 deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c327aa1ed7e6c97e78b64.json create mode 100644 deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c32a2a1ed7e6c97e78b65.json create mode 100644 deployments/tyk/data/tyk-dashboard/1/apis/api-oas-650c32faa1ed7e6c97e78b67.json 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