-
Notifications
You must be signed in to change notification settings - Fork 4
[DX-2179] docs: fix Content-Type in Swagger for Streams API endpoints #1118
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
Conversation
Update requestBody content type from 'application/json' to 'application/vnd.tyk.streams.oas' for all /api/apis/streams endpoints to accurately reflect the required Content-Type header. The Streams API endpoints require this specific Content-Type header value, which was already documented as a parameter but was incorrectly specified in the requestBody section. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
/release to release-5.8 |
|
/release to release-5.10 |
|
✅ Cherry-pick successful. A PR was created and auto-merged (if allowed): #1120 |
|
✅ Cherry-pick successful. A PR was created and auto-merged (if allowed): #1121 |
User description
Summary
requestBodycontent type for Streams API endpoints to useapplication/vnd.tyk.streams.oasinstead ofapplication/json/api/apis/streams, PATCH/api/apis/streams/{apiId}, PUT/api/apis/streams/{apiId}application/jsonRelated Jira
DX-2179 - Incorrect Content-Type for Streams API Not Documented
Related PRs
Test plan
application/vnd.tyk.streams.oasas the expected Content-Type for request bodies🤖 Generated with Claude Code
PR Type
Documentation
Description
Fix Streams requestBody content type
Use
application/vnd.tyk.streams.oasAlign requestBody with header parameter
Diagram Walkthrough
File Walkthrough
dashboard-swagger.yml
Align Streams requestBody media type with required headerswagger/dashboard-swagger.yml
application/jsonwithapplication/vnd.tyk.streams.oasinrequestBody.