Django/DRF – 405 Method not allowed on DELETE operation
The response looks very similar to that of the list view (/api/resource/) for a ViewSet. List views only support GET, to list all of the objects, and POST to create a new object. DELETE requests are only allowed on the detail view (/api/resource/1/). This is because Django REST Framework needs to know what object you … Read more