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

Function AuthorDetailView

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

Source from the content-addressed store, hash-verified

67
68@api_view(['GET'])
69def AuthorDetailView(request, pk):
70 author_detail = Author.objects.get(id=pk)
71 serializer = AuthorSerializer(author_detail, many=False)
72 return Response(serializer.data)
73
74
75@api_view(['GET'])

Callers

nothing calls this directly

Calls 2

AuthorSerializerClass · 0.85
getMethod · 0.80

Tested by

no test coverage detected