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

Function BookDetailView

locallibrary/catalog/views.py:57–60  ·  view source on GitHub ↗
(request, pk)

Source from the content-addressed store, hash-verified

55
56@api_view(['GET'])
57def BookDetailView(request, pk):
58 book_detail = Book.objects.get(id=pk)
59 serializer = BookSerializer(book_detail, many=False)
60 return Response(serializer.data)
61
62@api_view(['GET'])
63def BookSpecificView(request, author_id):

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
BookSerializerClass · 0.70

Tested by

no test coverage detected