title: How to add permissions in Django Rest Framework for specific requests
body: <p>I am creating a class based api for a documentation app, but I want to add specific permissions to the post and patch definitions in my APIView. For example,</p>
  
  <pre><code>class DocumentList(APIView):
  
      def get(self,request,format=None):
           ... blah
  
      def post(self,request,format=None):
          only allow administrators to create new documents 
          ... blah
  </code></pre>