1👍
✅
POST
method cannot be directly use from the browser. I suggest to use a HTTP client like https://www.getpostman.com/ to simulate POST HTTP request.
If you want to try if your method works, you could try to change the method to GET
.
This is a clean way using django-rest-framework
. With very little code, you could setup TEST API with web forms http://www.django-rest-framework.org/api-guide/serializers/#hyperlinkedmodelserializer
Source:stackexchange.com