Vladimir
Results
3
comments of
Vladimir
In my case I need just "data" field in POST requests. Views decorated as api_vew() and only one way how can I do it - add named group to URL...
@JenishGnanasicamani Found one solution: `class Book_list(generics.ListCreateAPIView): queryset = Book.objects.all() serializer_class = BookSerializer` `urlpatterns = [ url(r'^$', schema_view), url(r'books/$', views.Book_list.as_view(), name='Book_list'), ]` `class BookSerializer(serializers.ModelSerializer): class Meta: model = Book fields =...
Found solution for my case: ` class Book_list(generics.ListCreateAPIView): allowed_methods = ["POST"] queryset = Book.objects.all() serializer_class = BookSerializer`