-
Notifications
You must be signed in to change notification settings - Fork 7
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
OpenAI/Swagger documentation for axum's API #25
base: main
Are you sure you want to change the base?
Conversation
|
… includes small documentation about nvm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions added
#[derive(Deserialize)] | ||
#[derive(ToSchema)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[derive(Deserialize)] | |
#[derive(ToSchema)] | |
#[derive(Deserialize, ToSchema)] |
#[derive(Serialize)] | ||
#[derive(ToSchema)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[derive(Serialize)] | |
#[derive(ToSchema)] | |
#[derive(Serialize, ToSchema)] |
engine-strict=true | ||
engine-strict=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it the good formating or an artefact from your code editor ?
(same with web/.nvmrc but for some reason i cannot add a comment there)
Addition of an autogeneration of OpenAPI specs and a Swagger ui to easily navigate the API through utoipa.
Example:
Generates this swagger
And the Swagger UI is interactive