title: How to limit actions in django rest framework
body: <p>I'm using viewsets that has several actions (retrieve, list, create etc...). I also use swagger to get a clean overview of my API. The problem is that it's full of unused method (PATCH, PUT, DELETE) and it messes up the view.</p>
  
  <p>I've tried to do this in my viewsets : <code>allowed_methods = ('GET','POST',)</code></p>
  
  <p>The swagger still has all these unused method. How can I change this behavior ? Is there another way to limit the number of actions in a viewset ? Or maybe the problem is on swagger side ?</p>