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

Function AuthorListView

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

Source from the content-addressed store, hash-verified

47
48@api_view(['GET'])
49def AuthorListView(request):
50 author_list = Author.objects.all()
51 serializer = AuthorSerializer(author_list, many=True)
52
53 return Response(serializer.data)
54
55
56@api_view(['GET'])

Callers

nothing calls this directly

Calls 1

AuthorSerializerClass · 0.85

Tested by

no test coverage detected