Here is how my views.py looks like
@api_view([\'GET\', \'POST\'])
def AnswersList(request):
if request.method == \'GET\': # user requesting data