-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to dynamically set spec_url
in RapiDoc?
#805
Comments
Made the fields match the existing example in `utoipa_swagger_ui::SwaggerUi` (field `path`). Fixes juhaku#805
A bit late to the party, but I can also reproduce this. Even if we do let base_url = "/some/path";
let spec_url = format!("{}/api-docs/openapi.json", base_url);
HttpServer::new(move || App::new().service(RapiDoc::new(spec_url.clone().as_str())));
Unless there's something I'm missing, this has a very simple fix: simply have the I'll submit a PR. |
I'm wondering how I can dynamically set the
spec_url
for RapiDoc:This works fine:
But what if I want to do the following?:
The fact that I have to pass a
&str
toRapiDoc::new
makes this impossible!The text was updated successfully, but these errors were encountered: