MCPcopy Create free account
hub / github.com/codemistic/Web-Development / BookListView

Function BookListView

locallibrary/catalog/views.py:42–45  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

40
41@api_view(['GET'])
42def BookListView(request):
43 books_list = Book.objects.all()
44 serializer = BookSerializer(books_list, many=True)
45 return Response(serializer.data)
46
47
48@api_view(['GET'])

Callers

nothing calls this directly

Calls 1

BookSerializerClass · 0.70

Tested by

no test coverage detected