Qub*_*uba 5 django django-rest-framework swagger-2.0
我在用django-rest-framework==3.5.3 and django-rest-swagger==2.1.0.我如何在swagger UI中拥有响应模型.
这里http://petstore.swagger.io/#!/pet/findPetsByStatus在get方法中我们可以看到响应模型.
就我而言,只有HTTP状态代码.
有没有办法在django-rest-swagger中实现它?
- -编辑
我正在使用基于类的视图.模型显示了put,post,patch方法.