Skip to content
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

feat: support swagger-ui for the openapi #407

Merged
merged 4 commits into from
Jul 3, 2023
Merged

Conversation

n063h
Copy link
Contributor

@n063h n063h commented Jul 2, 2023

ref to #384

Description

Remove unnecessary explicit lifetime annotation and refactor signatures of some methods.

Before

Users can visit /openapi to get the openapi spec of mosec.

After

Users can visit /openapi get the openapi spec of mosec, and visit /swagger-ui to access the visual documentation Swagger.
image

Signed-off-by: hang lv <xlv20@fudan.edu.cn>
Signed-off-by: hang lv <xlv20@fudan.edu.cn>
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Jul 2, 2023
@n063h n063h marked this pull request as ready for review July 2, 2023 18:25
@kemingy kemingy linked an issue Jul 3, 2023 that may be closed by this pull request
src/apidoc.rs Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
Signed-off-by: hang lv <xlv20@fudan.edu.cn>
@n063h n063h requested a review from kemingy July 3, 2023 13:28
@kemingy kemingy added this pull request to the merge queue Jul 3, 2023
Merged via the queue into mosecorg:main with commit b98856f Jul 3, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: add swagger for the openapi
2 participants