-
Notifications
You must be signed in to change notification settings - Fork 246
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
[Enhancement] Re-introduce ability to send API requests from browser #264
Conversation
Size Change: +37.9 kB (+1%) Total Size: 3.8 MB
ℹ️ View Unchanged
|
Visit the preview URL for this PR (updated for commit be2149e): https://docusaurus-openapi-36b86--pr264-gl3vi0at.web.app (expires Sun, 16 Oct 2022 13:44:14 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
9501c42
to
dea3f7c
Compare
@sserrata I have deployed the Docusaurus plugin for OpenAPI docs. But I don't see the "Send API Request" button. Also, I have verified that the "hideSendButton" is not present in my Docusaurus config file. Can you help me understand why the "Send API Request" button is not visible? |
Description
Re-introduces option to send API requests from browser.
Deploy preview: https://docusaurus-openapi-36b86--pr264-gl3vi0at.web.app/
Additional changes:
description
with double quotes and replace all non-escaped double quotes with single.li
tags and renaming ofclass
toclassName
.Motivation and Context
Despite the inherent security risk of exposing API keys to the browser the "try it" feature is a common feature in most interactive API docs tools. If the end-user is willing the accept the risk then we may allows maintainers to enable this feature.
How Has This Been Tested?
Tested with Petstore API using prism mock server.