-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging to release-5.7.1: [TT-13761] add batch request to the latest …
…open api specs (#6797) (#6808) ### **User description** [TT-13761] add batch request to the latest open api specs (#6797) <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]> [TT-13761]: https://tyktech.atlassian.net/browse/TT-13761?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [TT-13761]: https://tyktech.atlassian.net/browse/TT-13761?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ ___ ### **PR Type** Enhancement, Bug fix ___ ### **Description** - Added a new "Batch requests" feature to the OpenAPI specification, including a detailed description, examples, and a new endpoint `/{listen_path}/tyk/batch`. - Introduced new schemas (`BatchRequestStructure`, `BatchReplyUnit`, and `RequestDefinition`) to support batch request functionality. - Updated the OpenAPI schema reference URL from an external source to a local copy hosted in the repository to resolve a 404 error issue. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Bug fix</strong></td><td><table> <tr> <td> <details> <summary><strong>.redocly.lint-ignore.yaml</strong><dd><code>Update OpenAPI schema reference URL to local copy</code> </dd></summary> <hr> .redocly.lint-ignore.yaml <li>Updated the reference URL for the OpenAPI schema from an external <br>source to a local copy hosted in the repository.<br> </details> </td> <td><a href="https://github.com/TykTechnologies/tyk/pull/6808/files#diff-e4fbedb98d4b719f6be66946eec4e940438c123f2303c842b449c528ade31579">+1/-1</a> </td> </tr> </table></td></tr><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>swagger.yml</strong><dd><code>Add batch request endpoint and update OpenAPI schema references</code></dd></summary> <hr> swagger.yml <li>Added a new "Batch requests" section to the OpenAPI specification with <br>detailed descriptions and examples.<br> <li> Introduced a new endpoint <code>/{listen_path}/tyk/batch</code> for handling batch <br>requests.<br> <li> Defined new schemas for batch request and response structures <br>(<code>BatchRequestStructure</code>, <code>BatchReplyUnit</code>, and <code>RequestDefinition</code>).<br> <li> Updated references to the OpenAPI schema URL to use a local copy.<br> </details> </td> <td><a href="https://github.com/TykTechnologies/tyk/pull/6808/files#diff-8f3c4cb253eee09ae2401daa7279a8bbfbfd4168bb579c3ac0ee5c672d63bb2c">+295/-6</a> </td> </tr> </table></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: Comment `/help "your question"` on any pull request to receive relevant information Co-authored-by: itachi sasuke <[email protected]>
- Loading branch information
1 parent
81f3430
commit eb79e70
Showing
2 changed files
with
296 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters