-
Notifications
You must be signed in to change notification settings - Fork 111
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
Try it API console feature #24
Comments
Not sure what you are talking about, could you add an example? |
Another issue, when i change the routePath to something other than api, i.e./api/petstore, i got another issue: Error: end of the stream or a document separator is expected in "http://localhost:3000/api/openapi.yaml" at line 35, column 47: |
So this plugin is a wrapper around https://github.com/redocly/redoc to make it easy to use with docusaurus, so a feature like that will be out of scope for the purpose of this plugin. They already have an open issue for this: Redocly/redoc#53 |
Not sure what you mean. Some thing like #23 ?
Thanks! :D |
Closing this, since the original request is out of scope for this project. Hopefully redoc will implement it. Please open a new issue for any other issues |
Hi @rohit-gohri There's a plugin for ReDoc to do this: https://github.com/wll8/redoc-try Maybe it will work well and just need some styling. I'm also interested on this. |
@Anthony-Gaudino Styling wll8/redoc-try to also support docusaurus themes is going to be a lot of work. I think a better alternative is to use code examples (curl is one) instead that make it easy to try the API in your local, and they are already supported by redoc. |
Could you please instruct me to enable the code examples? I tried what the doc says but not working: theme: {
options:
{
// https://redocly.com/docs/api-reference-docs/configuration/functionality/
generateCodeSamples: {
languages: [
{ lang: "curl" },
{ lang: "Node.js" },
{ lang: "JavaScript", label: "JS" },
],
},
},
}, Thank you in advance. |
Hey @Songkeys, that feature is part of redocly's paid offerings. From their docs (https://redocly.com/docs/api-reference-docs/guides/generate-code-samples/) :
|
@rohit-drone |
I'm not sure, haven't used it. We use the official package behind the scenes: https://github.com/Redocly/redoc/ Btw, they also have a "Try it API console": https://redocly.com/docs/api-reference-docs/guides/try-it-console/ |
I'll take a look. Thank you so much for this info and this amazing project! |
How much of a pain would it be to remake it 🤔 |
Not in scope of this package. This package's aim is just to provide an integration, not to remake redoc. |
Is it possible to have the try function like what we have in general apidoc/swagger?
The text was updated successfully, but these errors were encountered: