-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merging to release-5.7: [TT-13761] add batch request to the latest open api specs (#6797) #6807
Merging to release-5.7: [TT-13761] add batch request to the latest open api specs (#6797) #6807
Conversation
<details open> <summary><a href="https://tyktech.atlassian.net/browse/TT-13761" title="TT-13761" target="_blank">TT-13761</a></summary> <br /> <table> <tr> <th>Summary</th> <td>add batch request to the latest open api specs</td> </tr> <tr> <th>Type</th> <td> <img alt="Story" src="https://tyktech.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10315?size=medium" /> Story </td> </tr> <tr> <th>Status</th> <td>In Code Review</td> </tr> <tr> <th>Points</th> <td>N/A</td> </tr> <tr> <th>Labels</th> <td>-</td> </tr> </table> </details> <!-- do not remove this marker as it will break jira-lint's functionality. added_by_jira_lint --> --- When the new Gateway Open Api spec was created. The Batch request endpoint was left out .This should be added to the gateway OAS. This pr also fixes an issue where the external OAS Url we were using now return error 404. This pr changes that to use a local copy of the external oas . I.e we have changed from : https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json to https://raw.githubusercontent.com/TykTechnologies/tyk/refs/heads/master/apidef/oas/schema/3.0.json Link: https://tyk.io/docs/5.5/tyk-gateway-api/ [TT-13761] [TT-13761]: https://tyktech.atlassian.net/browse/TT-13761?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: itachi sasuke <[email protected]> (cherry picked from commit 0276c06)
Swagger Changes
_ __ __
/{listen_path}/tyk/batch:
BatchReplyUnit:
BatchRequestStructure:
RequestDefinition:
_| |_ _ / _|/ _| between swagger-prev.yml
+ one list entry added:
+ one list entry added:
+ one list entry added:
+ one list entry added:
+ one list entry added:
+ one map entry added:
+ three map entries added:
- one list entry removed:
- one list entry removed:
- one list entry removed:
- one list entry removed:
± value change
± value change
/ _' | | | | |_| |_ and swagger-current.yml
\__,_|\__, |_| |_| returned nine differences
components.schemas
paths
paths./tyk/apis/oas.get.responses.200.content.application/json.schema.items.allOf
paths./tyk/apis/oas.post.requestBody.content.application/json.schema.allOf
paths./tyk/apis/oas/import.post.requestBody.content.application/json.schema.$ref
paths./tyk/apis/oas/{apiID}.get.responses.200.content.application/json.schema.allOf
paths./tyk/apis/oas/{apiID}.patch.requestBody.content.application/json.schema.$ref
paths./tyk/apis/oas/{apiID}.put.requestBody.content.application/json.schema.allOf
tags
| (_| | |_| | _| _| |
API Changes no api changes detected |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Quality Gate failedFailed conditions |
User description
TT-13761 add batch request to the latest open api specs (#6797)
TT-13761
When the new Gateway Open Api spec was created. The Batch request
endpoint was left out .This should be added to the gateway OAS.
This pr also fixes an issue where the external OAS Url we were using now
return error 404. This pr changes that to use a local copy of the
external oas . I.e we have changed from :
https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json
to
https://raw.githubusercontent.com/TykTechnologies/tyk/refs/heads/master/apidef/oas/schema/3.0.json
Link: https://tyk.io/docs/5.5/tyk-gateway-api/
TT-13761
Co-authored-by: itachi sasuke [email protected]
PR Type
Enhancement, Bug fix
Description
/{listen_path}/tyk/batch
and detailed documentation on its usage, request structure, and response format.BatchRequestStructure
,BatchReplyUnit
, andRequestDefinition
) to support batch request functionality.Changes walkthrough 📝
.redocly.lint-ignore.yaml
Update OpenAPI schema URL to local reference
.redocly.lint-ignore.yaml
instead of an external URL.
swagger.yml
Add batch request support and update OpenAPI schema references
swagger.yml
Batch requests
section with detailed descriptions andexamples.
/{listen_path}/tyk/batch
for batch requests.BatchRequestStructure
,BatchReplyUnit
, andRequestDefinition
.