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
Would you consider adding an option to pass in url prefix into the generated spec?
"paths" : { "/my_prefix/rest/of/my/path" : { "get" : { "parameters" : [ { "name" : "X-Customheader", "in" : "header", "required" : true, "schema" : { "type" : "string" } } ] } ... snip ...
Maybe something like that:
let spec_options = SpecOptions::default().with_url_prefix("/my_prefix"); let my_api_schema = my_api.spec_endpoint_with_options(options);
The text was updated successfully, but these errors were encountered:
Maybe it can be solved with prefix_path attribute.
prefix_path
poem/poem-openapi/tests/api.rs
Line 88 in 7ada5b6
Sorry, something went wrong.
Unfortunately not. This prefix comes from config file and additionally we have abstraction over the handlers so the prefix is dynamic.
I could have a go at implementing it if you would be ok with it
Welcome to PR😁
No branches or pull requests
Description of the feature
Would you consider adding an option to pass in url prefix into the generated spec?
Code example (if possible)
Maybe something like that:
The text was updated successfully, but these errors were encountered: