-
Notifications
You must be signed in to change notification settings - Fork 222
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
Derive URL path form handler to avoid declaring it twice (axum) #537
Comments
That is error prone and suboptimal to say the least but that is what we have for now for axum. There is existing issue related to this #394. So there are plans to improve the support for axum in future. Thank you for your patience 🙂 |
There is now coming up implementation for this to reduce the duplicate endpoint registration. Currently in experimenting phase #991 |
Hi!
I think it is quite error prone when the URL of an API endpoint has to be declared twice.
Could we add an option to make utoipa derive it from the API handler declaration? If that is possible I can also imagine that the Method (GET, POST) and even the output schema can be derived to avoid boilerplate.
Thanks!
The text was updated successfully, but these errors were encountered: