-
Notifications
You must be signed in to change notification settings - Fork 0
feat: swagger & swagger-ui #12
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
base: main
Are you sure you want to change the base?
Conversation
The preview deployment failed. 🔴 Last updated at: 2025-07-15 20:27:44 CET |
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.
Please also change in endpoint.ex
the following lines
plug Plug.Static,
at: "/",
from: :atlas,
gzip: false,
only: AtlasWeb.static_paths()
to
plug Plug.Static,
at: "/",
from: :atlas,
gzip: false,
only: ~w(css fonts images js favicon.ico robots.txt swagger.json)
produces("application/json") | ||
tag("Authentication") | ||
operation_id("sessions") | ||
response(200, "Sessions succesfully returned") |
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.
Use schemas to specify exactly the format of the content that gets returned. Maybe also add an example?
Closes #4