U
    Æ½„bî  ã                
   @   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   ú@/tmp/pip-unpacked-wheel-iohwuy7z/rest_framework/documentation.pyÚget_docs_view
   s    ör   c	           
      C   s"   t g}	t| ||||	|||||d�
S 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   s6    ö÷þ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>   sF        û
     ü
     û