import OAS
POST {{baseUrl}}/api/apis/oas/import?upstreamURL=<string>&listenPath=<string>&customDomain=<string>&allowList=true&validateRequest=true&mockResponse=true&authentication=true
Create a new OAS format API, without x-tyk-gateway. For use with an existing OAS API that you want to expose via your Tyk Gateway. (New)
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
upstreamURL | string | Upstream URL for the API | |
listenPath | string | Listen path for the API | |
customDomain | string | Custom domain for the API | |
allowList | boolean | Enable allowList middleware for all endpoints | |
validateRequest | boolean | Enable validateRequest middleware for all endpoints having a request body with media type application/json | |
mockResponse | boolean | Enable mockResponse middleware for all endpoints having responses configured. | |
authentication | boolean | Enable/disable the authentication mechanism in your Tyk Gateway for your OAS API |
Request Body
{"value"=>"reference https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json not found in the OpenAPI spec"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"action":"\u003cstring\u003e","key":"\u003cstring\u003e","key_hash":"\u003cstring\u003e","status":"\u003cstring\u003e"}