import OAS
POST {{baseUrl}}/tyk/apis/oas/import?upstreamURL=minim dolor&listenPath=minim dolor&customDomain=minim dolor&apiID=minim dolor&allowList=<string>&validateRequest=<string>&authentication=<string>
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 | |
apiID | string | ID of the API | |
allowList | string | Enable allowList middleware for all endpoints | |
validateRequest | string | Enable validateRequest middleware for all endpoints having a request body with media type application/json | |
authentication | string | Enable or disable authentication in your Tyk Gateway as per your OAS document. |
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
{"status":"ok","action":"added","key":"{created APIID}"}