o
    h#                     @   s   d dl Z d dlmZ d dlmZ d dlmZmZ d dlm	Z	 d dl
mZ d dlmZ ee	dd	G d
d deZee	dd	G dd deZee	dd	G dd deZdS )    N)HttpResponse)method_decorator)TemplateViewView)login_not_required)app_settings)
get_schemadispatch)namec                   @      e Zd Zdd ZdS )OpenAPIYAMLViewc                 C   s0   dd l }t }|j||jd}t|dddidS )Nr   )Dumperzapplication/vnd.oai.openapiContent-Dispositionz%inline; filename=allauth-openapi.yamlcontent_typeheaders)yamlr   dumpr   r   )selfrequestr   speccontent r   R/var/www/html/pos/venv/lib/python3.10/site-packages/allauth/headless/spec/views.pyget   s   zOpenAPIYAMLView.getN__name__
__module____qualname__r   r   r   r   r   r          r   c                   @   r   )OpenAPIJSONViewc                 C   s"   t  }t|}t|dddidS )Nz application/vnd.oai.openapi+jsonr   z%inline; filename=allauth-openapi.jsonr   )r   jsondumpsr   )r   r   r   r   r   r   r   r      s   
zOpenAPIJSONView.getNr   r   r   r   r   r       r   r    c                   @   r   )OpenAPIHTMLViewc                 C   s   t jgS )N)r   SPECIFICATION_TEMPLATE_NAME)r   r   r   r   get_template_names(   s   z"OpenAPIHTMLView.get_template_namesN)r   r   r   r%   r   r   r   r   r#   &   r   r#   )r!   django.httpr   django.utils.decoratorsr   django.views.genericr   r   #allauth.account.internal.decoratorsr   allauth.headlessr   %allauth.headless.spec.internal.schemar   r   r    r#   r   r   r   r   <module>   s    


