allow post requests in django REST framework
问题 I am creating a simple rest api using django REST framework. I have successfully got the response by sending GET request to the api but since I want to send POST request, the django rest framework doesn't allow POST request by default. As in image(below) only GET,HEAD, OPTIONS are allowed but not the POST request The GET and POST methods inside of views.py from django.shortcuts import render from rest_framework.views import APIView from rest_framework.response import Response from profiles