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
How about put some common attributes on the impl scope? such as prefix_path and openapi tag.
prefix_path
tag
#[OpenApi] #[oai(prefix_path = "/pet", tag = ApiTags::Pet)] impl Api { #[oai(path = "/", method = "post")] async fn add_pet(&self, pet: Json<Pet>) -> Result<()> { todo!() } // ... }
The text was updated successfully, but these errors were encountered:
Merge pull request #57 from umaYnit/master
2f1545a
Add common attributes for OpenApi. #54
For anyone else who reads this and can't find docs.
#[OpenApi(prefix_path = "/api", tag = "ApiTags::Test")] impl TestRoutesApi {}
Sorry, something went wrong.
No branches or pull requests
Description of the feature
How about put some common attributes on the impl scope?
such as
prefix_path
and openapitag
.Code example (if possible)
The text was updated successfully, but these errors were encountered: