Django's Get Response Model

I use django-rest-framework==3.5.3 and django-rest-swagger==2.1.0. How can I get the response model present in the swagger user interface.

Here http://petstore.swagger.io/#!/pet/findPetsByStatus in the methods of getting we can see the response model.

In my case, there is only an HTTP status code.

enter image description here Is there a way to achieve this in django-daw-swag?

--- change

I use class based views. And the model demonstrates put, post, patch methods.

+4
source share

Source: https://habr.com/ru/post/1662026/


All Articles