We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm integrating swagger-ui into a React app and have imported the Petstore definition. My React component looks like this:
swagger-ui
<SwaggerUI spec={document} />
The Swagger-UI renders correctly, but when I use the "Try it out" functionality, the API calls are sent to: http://localhost:5173/api/v3/pet
I expected these calls to point to the server defined in the OpenAPI specification from the JSON file.
I’m aware that I can use a hook to override the URL, but I was under the impression this should work out of the box.
Is this behavior expected? Are there any solutions to address this issue other than using the hook?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Issue Description
I'm integrating
swagger-ui
into a React app and have imported the Petstore definition. My React component looks like this:The Swagger-UI renders correctly, but when I use the "Try it out" functionality, the API calls are sent to:
http://localhost:5173/api/v3/pet
I expected these calls to point to the server defined in the OpenAPI specification from the JSON file.
I’m aware that I can use a hook to override the URL, but I was under the impression this should work out of the box.
Question:
Is this behavior expected?
Are there any solutions to address this issue other than using the hook?
The text was updated successfully, but these errors were encountered: