[Fixed]-How to set resource name on an ad-hoc method of Viewset in Django Rest Framework JSON API?

1👍

The ViewSet is the controller of the resource. It doesn’t make sense to set a method on a ViewSet and associate it with another resource.

Either write a function with decorator to make an API entry point or get a new ViewSet for it.

Leave a comment