i am implementing an API using django-rest-framework and using drf-yasg to document and name my endpoints every post method ends with create
i tried searching through the documentation and i cant find a way to do it
i am implementing an API using django-rest-framework and using drf-yasg to document and name my endpoints every post method ends with create
i tried searching through the documentation and i cant find a way to do it
As someone mentioned in the comment, you should use the @swagger_auto_schema()
decorator for your API in order to customize it. then set operation_id
to change its name in swagger docs.
here is an exact example that'll solve your problem: drf-yasg: How to change operationId?