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

Function BookSpecificView

locallibrary/catalog/views.py:63–66  ·  view source on GitHub ↗
(request, author_id)

Source from the content-addressed store, hash-verified

61
62@api_view(['GET'])
63def BookSpecificView(request, author_id):
64 author_books = Book.objects.filter(author = author_id)
65 serializer = BookSerializer(author_books, many=True)
66 return Response(serializer.data)
67
68@api_view(['GET'])
69def AuthorDetailView(request, pk):

Callers

nothing calls this directly

Calls 1

BookSerializerClass · 0.70

Tested by

no test coverage detected