DRF tidak mendapatkan bentuk
#Add Generic View as below
class ModelListView(generics.ListCreateAPIView):
"""
List all snippets, or create a new snippet.
"""
queryset = ModelName.objects.all()
serializer_class = ModelNameSerializer
Jittery Jay