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

Function get_book

django_rest/core/home/views.py:12–15  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

10# Create your views here.
11@api_view(['GET'])
12def get_book(request):
13 book_objs = Book.objects.all()
14 serializer = BookSerializer(book_objs , many=True)
15 return Response({'status':200,'payload':serializer.data})
16
17
18from rest_framework_simplejwt.tokens import RefreshToken

Callers

nothing calls this directly

Calls 1

BookSerializerClass · 0.70

Tested by

no test coverage detected