V
V
Vladimir2019-07-12 10:06:31
Django
Vladimir, 2019-07-12 10:06:31

How to group API URLs in drf-yasg according to your meaning?

Hello!
I use the drf-yasg library for documentation, but more to test and let others test my API on Django.
Tell me who also worked with it, how can I split the displayed endpoints into groups / blocks?
5d2830fa425d0843270663.png
This is what it looks like now and my main endpoints are hidden in the api block which is named after the first path in the url "/api/..."
How can I break this down into my own logical blocks?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2019-07-12
@FonVald

Finally found it)
you need to use the @swagger_auto_schema(tags=['orders']) decorator, then the url will be added to the order block

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question