# views.py @login_required @permission_classes([IsAdminUser]) @api_view(['GET']) def say_hi_admin(request): return Response('Hi Admin')
On making a GET request using POSTMAN with the following request Body(raw/json):
{ "user": { "id": 1, "email": "[email protected]", "password": "pass" } }
But I get this as the response,
{ "detail": "Authentication credentials were not provided." }
How can I solve this?
2.1m questions
2.1m answers
60 comments
57.0k users