You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have problem, and I didn't see way to annotate class which inheriting from API View, when get method for list and detail are merged together in one class. For example:
`
class CompanyView(APIView):
company_serializer_class = CompanySerializer
single_company_serializer_class = SingleCompanySerializer
I have tried, as you can see above, but there is no any update in swagger. When I move swagger_auto_schema decorator into get method, I get error that duplicated decorator applied.
Could you solve this problem?
The text was updated successfully, but these errors were encountered:
SzateX
changed the title
Can't descripe GET Method for detail, and list in APIView class based views.
Can't describe GET Method for detail, and list in APIView class based views.
Oct 24, 2020
Hi,
I have problem, and I didn't see way to annotate class which inheriting from API View, when get method for list and detail are merged together in one class. For example:
`
class CompanyView(APIView):
company_serializer_class = CompanySerializer
single_company_serializer_class = SingleCompanySerializer
`
I have tried, as you can see above, but there is no any update in swagger. When I move swagger_auto_schema decorator into get method, I get error that duplicated decorator applied.
Could you solve this problem?
The text was updated successfully, but these errors were encountered: