(request, author_id)
| 61 | |
| 62 | @api_view(['GET']) |
| 63 | def 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']) |
| 69 | def AuthorDetailView(request, pk): |
nothing calls this directly
no test coverage detected