-
Notifications
You must be signed in to change notification settings - Fork 247
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
[FR] Sync Content-Type/Accept with Request/Response #218
Conversation
ec1a121
to
8cab975
Compare
Size Change: -72.3 kB (-2%) Total Size: 3.76 MB
ℹ️ View Unchanged
|
Visit the preview URL for this PR (updated for commit 33ff0a1): https://docusaurus-openapi-36b86--pr218-ttcj4gsa.web.app (expires Sun, 13 Nov 2022 16:45:58 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
Seems to work ok - have you encountered any issues? Screen.Recording.2022-10-05.at.2.46.42.PM.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤞🏽
Description
This PR introduces support for extending the current Redux Store from the
ApiItem
component level. This enables the ability to sync MIME/media type changes (viaMimeTabs
) with theApiDemoPanel
.Motivation and Context
See #197
How Has This Been Tested?
Tested with Petstore API
Content-Type/Request: Tested by toggling between
MimeTabs
and ensuring that each selection synced and updated theContent-Type
field within theApiDemoPanel
andCurl
components. Example can be tested hereAccept/Response: Tested by toggling between
MimeTabs
and ensuring that each selection synced and updated theAccept
field within theApiDemoPanel
andCurl
components. Example can be tested hereScreenshots (if appropriate)
Content-Type/Request
Screen.Recording.2022-10-10.at.10.05.24.AM.mov
Accept/Response
Screen.Recording.2022-10-10.at.10.07.18.AM.mov
Types of changes
Checklist
TODO
Although the current implementation supports the syncing between
MimeTabs
and theApiDemoPanel
, there are still some things to note:ApiDemoPanel
fields (Content-Type/Accept/Base URL) are not persisted throughout the user session.ApiDemoPanel
fields (Content-Type/Accept) does not update theMimeTab
selection.Further investigation is needed to fully support the use cases above.