o
    "7h                  
   @   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 u 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   q/var/www/epreuve.sigeris.cm/public_html/epreuve/venv/lib/python3.10/site-packages/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   	docs_viewschema_js_viewurlsr   r   r   include_docs_urls7   s6   r!   )django.urlsr   r   rest_framework.renderersr   r   r   rest_framework.schemasr   r   rest_framework.settingsr	   DEFAULT_AUTHENTICATION_CLASSESDEFAULT_PERMISSION_CLASSESr   r   r!   r   r   r   r   <module>   s*    

