-
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
BITMAKER-2934 Improve estela generated OpenAPI documentation #171
base: main
Are you sure you want to change the base?
Conversation
3cc024c
to
0e1c863
Compare
0e1c863
to
67cf664
Compare
) | ||
def request(self, request, *args, **kwargs): | ||
def request_reset(self, request, *args, **kwargs): |
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.
Tags were not generated properly for this one (defaulting to api
). Probably because behind of that inheritance there is already a self.request
used for another thing and @swagger_auto_schema
was not detecting the tag correctly. So the workaround would be to preserve the same path by using url_path
and renaming the method.
fd13959
to
c060e32
Compare
Add tags to estela api endpoints in current swagger_auto_schema decorator. Add tags for inherited methods from ModelViewSet and other mixins. Since in the past all of those were tagged just as `api`. Update `generated-api` code and `api.yaml` spec.
@joaquingx The changes in this PR help tidy up our autogenerated swagger API specification, which in turn also helps have a cleaner interface in the endpoints docs (https://estela.bitmaker.la/estela/api/endpoints.html#tag/api), where you see right now everything is under a single category |
Description
make docs
.Issue
Checklist before requesting a review