django-rest-framework-docs
django-rest-framework-docs copied to clipboard
Document Web APIs made with Django Rest Framework
Hey there, DRF docs looks really cool. But it looks like the project doesn't currently have support for viewsets that implement a `get_serializer` method. In my case, I use information...
When using ModelViewSets, the apis shown in doc are wrong. ``` python class UserInfoSerializer(ModelSerializer): class Meta: model = User class UserInfo(ModelViewSet): queryset = User.objects.all() serializer_class = UserInfoSerializer urlpatterns = [...
 ``` class MessagesSerializers(serializers.ModelSerializer): message = serializers.CharField(min_length=1) class Meta: model = ChatMessages fields = ('message','chat','user','date') read_only_fields = ('chat','user') ```
f I use APIView to design API, what should I do eg : `url(r'^alipay.pay.unified.order/$', views.AlipayPayUnifiedOrderView.as_view(), name='alipay.pay.unified.order'), ` ``` class AlipayPayUnifiedOrderView(BaseOpenGateWayRequestView): request_params = ('merchant_code', 'total_amount', 'out_trade_no', 'subject', 'card_code') def get(self, request,...
Hello, don't worry, I just got to know this library and I want to use it, but it shows me this error, what should I do? 