3
Ah`              
   @   s   d dl mZmZ d dlmZmZmZ d dlmZm	Z	 d dl
mZ ddddddeejejdf
ddZddddddeejejf	d	d
Zddddddeejejdf
ddZdS )    )includepath)CoreJSONRendererDocumentationRendererSchemaJSRenderer)SchemaGeneratorget_schema_view)api_settingsNTc
       
      C   s,   |	d krt tg}	t| ||||	|||||d
S )N)
titleurlurlconfdescriptionrenderer_classespublicpatternsgenerator_classauthentication_classespermission_classes)r   r   r   )
r
   r   
schema_urlr   r   r   r   r   r   r    r   K/tmp/pip-build-9m32_hle/djangorestframework/rest_framework/documentation.pyget_docs_view
   s    r   c	       
      C   s"   t g}	t| ||||	|||||d
S )N)
r
   r   r   r   r   r   r   r   r   r   )r   r   )
r
   r   r   r   r   r   r   r   r   r   r   r   r   get_schemajs_view"   s    r   c
             C   sb   t | ||||||||	|d
}
t| ||||||||d	}td|
ddtd|ddg}t|dfdd	S )
N)
r
   r   r   r   r   r   r   r   r   r   )	r
   r   r   r   r   r   r   r   r    z
docs-index)namez	schema.jsz	schema-jszapi-docs)	namespace)r   r   r   r   )r
   r   r   r   r   r   r   r   r   r   Z	docs_viewZschema_js_viewurlsr   r   r   include_docs_urls7   s0    r   )Zdjango.urlsr   r   Zrest_framework.renderersr   r   r   Zrest_framework.schemasr   r   Zrest_framework.settingsr	   ZDEFAULT_AUTHENTICATION_CLASSESZDEFAULT_PERMISSION_CLASSESr   r   r   r   r   r   r   <module>   s"   