title: How can I exclude a view from the API documentation?
body: <p>I use django-rest-framework (DRF) to provide the REST API of a site of mine. From what I understand, the automatic generation of API documentation relies on DRF's generation of a <a href="http://www.django-rest-framework.org/api-guide/schemas/" rel="noreferrer">schema</a>. It may then be interpreted by a third-party tool to produce pretty documentation. I've used <code>django-rest-swagger</code> as the tool that produces the pretty documentation from DRF's schema, but I suspect the solution to my problem is DRF-based, independent of whatever tool I use to transform the schema to something "pretty".</p>
  
  <p>The problem is that by default, DRF provides documentation for the whole API, even though some parts of it are really for my sites own internal purpose. <strong>I'd like some views to be excluded from the documentation.</strong> Some views should always be excluded. Some views should be excluded only if the user viewing the documentation is not logged into the site.</p>