-
Notifications
You must be signed in to change notification settings - Fork 13
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: Add swagger UI #193
Merged
gab-arrobo
merged 15 commits into
omec-project:master
from
patriciareinoso:add-swagger-ui
Aug 12, 2024
Merged
feat: Add swagger UI #193
gab-arrobo
merged 15 commits into
omec-project:master
from
patriciareinoso:add-swagger-ui
Aug 12, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Patricia Reinoso <[email protected]>
Signed-off-by: Patricia Reinoso <[email protected]>
Signed-off-by: Patricia Reinoso <[email protected]>
Signed-off-by: Patricia Reinoso <[email protected]>
Signed-off-by: Patricia Reinoso <[email protected]>
Signed-off-by: Patricia Reinoso <[email protected]>
6 tasks
Signed-off-by: Patricia Reinoso <[email protected]>
Signed-off-by: Patricia Reinoso <[email protected]>
Signed-off-by: Patricia Reinoso <[email protected]>
patriciareinoso
commented
Jul 2, 2024
patriciareinoso
commented
Jul 2, 2024
6 tasks
Do you welcome comments in draft status? |
thakurajayL
reviewed
Jul 7, 2024
…nto add-swagger-ui Signed-off-by: Patricia Reinoso <[email protected]>
gatici
approved these changes
Jul 19, 2024
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.
Looks Good.
@patriciareinoso please rebase your PR. Thanks! |
…nto add-swagger-ui Signed-off-by: Patricia Reinoso <[email protected]>
patriciareinoso
force-pushed
the
add-swagger-ui
branch
from
July 26, 2024 09:49
019fe4c
to
4342a0a
Compare
Signed-off-by: Patricia Reinoso <[email protected]>
thakurajayL
approved these changes
Aug 10, 2024
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a service for swagger UI docs.
This is an optional functionality, default behavior is not changed.
The swagger UI for the API documentation is automatically generated from annotations.
How to use it:
To generate the swagger UI files run:
The
docs.go
file will automatically be created inwebconsole/docs
The swagger UI runs by default on
localhost
. If the webconsole server runs remotely, set the following environment variable.Build the webconsole including the UI option:
Access the swagger UI at:
The
doc.json
file, which can be integrated in a frontend implementation, is available at:Documentation for code annotations
https://github.com/swaggo/swag
Rationale
Swagger UI provides interactive API documentation where developers can see available endpoints, their parameters, and expected responses. They can also test endpoints directly from the documentation interface, making it easier to understand and use the API.