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

Function taskList

Django_React_Todo/api/views.py:18–21  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

16# GET
17@api_view(['GET'])
18def taskList(request):
19 tasks = Task.objects.all()
20 serializer = TaskSerializer(tasks, many=True)
21 return Response(serializer.data)
22
23# GET with id
24@api_view(['GET'])

Callers

nothing calls this directly

Calls 1

TaskSerializerClass · 0.85

Tested by

no test coverage detected