U
    S>e                     @   sh   d Z ddlmZ ddlmZmZ ddlmZmZmZ ddl	m
Z
 ddddddddejejdfd	d
ZdS )a"  
rest_framework.schemas

schemas:
    __init__.py
    generators.py   # Top-down schema generation
    inspectors.py   # Per-endpoint view introspection
    utils.py        # Shared helper functions
    views.py        # Houses `SchemaView`, `APIView` subclass.

We expose a minimal "public" API directly from `schemas`. This covers the
basic use-cases:

    from rest_framework.schemas import (
        AutoSchema,
        ManualSchema,
        get_schema_view,
        SchemaGenerator,
    )

Other access should target the submodules directly
    )api_settings   )coreapiopenapi)
AutoSchemaManualSchemaSchemaGenerator)DefaultSchemaNFc                 C   sR   |dkrt  rt j}ntj}|| |||||
d}ddlm} |j|||||	dS )z
    Return a schema view.
    N)titleurldescriptionurlconfpatternsversionr   )
SchemaView)renderer_classesZschema_generatorpublicauthentication_classespermission_classes)r   
is_enabledr   r   Zviewsr   Zas_view)r
   r   r   r   r   r   r   Zgenerator_classr   r   r   	generatorr    r   C/tmp/pip-unpacked-wheel-5c9kfm71/rest_framework/schemas/__init__.pyget_schema_view   s(    	    r   )__doc__Zrest_framework.settingsr    r   r   r   r   r   Z
inspectorsr	   ZDEFAULT_AUTHENTICATION_CLASSESZDEFAULT_PERMISSION_CLASSESr   r   r   r   r   <module>   s          