{% extends "rest_framework/tailwind/base.html" %} {% load rest_framework %} {% block content %}
{# Main Content Column #}
{# Endpoint Info Card #} {% if description %}

{{ name }}

{{ description }}
{# Copy endpoint button #}
{# Endpoint URL with copy functionality #}
{{ request.get_full_path }}
{% endif %} {# Response Viewer with Tabs #}
{# Tabs Header #}
{% if display_edit_forms %} {% endif %}
{# Response Status Badge #} {% if response.status_code %}
{{ response.status_code }} {{ response.status_text }}
{% endif %}
{# Response Content #}
{# Pretty JSON View #}
{% if content %}
{# Toolbar #}
{# Copy button #}
{# Interactive JSON Tree #}
{% else %}

No response data

{% endif %}
{# Raw View #}
{{ content }}
{# Headers View #} {% if display_edit_forms %}
{% for key, val in response.items %}
{{ key }}: {{ val }}
{% endfor %}
{% endif %}
{# Request Forms #} {% if display_edit_forms %}

Make a Request

{# Request method tabs #}
{# Method selector #}
{% for method in allowed_methods %} {% if method != "OPTIONS" %} {% endif %} {% endfor %}
{# Forms for each method #} {% for method in allowed_methods %} {% if method != "OPTIONS" %}
{% with form=raw_data_put_or_patch_form %} {% if method == "PUT" or method == "PATCH" %} {% include "rest_framework/tailwind/forms/raw_data_form.html" %} {% endif %} {% endwith %} {% with form=raw_data_post_form %} {% if method == "POST" %} {% include "rest_framework/tailwind/forms/raw_data_form.html" %} {% endif %} {% endwith %} {% if method == "DELETE" %}
{% csrf_token %}

Are you sure you want to delete this resource?

{% endif %} {% if method == "GET" %}

Use the filters sidebar or query parameters to customize your GET request.

{% endif %}
{% endif %} {% endfor %}
{% endif %} {# Pagination #} {% if paginator %}
Showing {{ paginator.start_index }} - {{ paginator.end_index }} of {{ paginator.count }} results
{% if page.has_previous %} Previous {% endif %} {{ page.number }} {% if page.has_next %} Next {% endif %}
{% endif %}
{# Sidebar with Info & Filters #}
{# API Info Card #}

API Info

{# Allowed methods #}
Allowed Methods
{% for method in allowed_methods %} {{ method }} {% endfor %}
{# Content type #} {% if available_formats %}
Response Formats
{% for format in available_formats %} {{ format }} {% endfor %}
{% endif %} {# Version info if available #} {% if api_version %}
API Version

{{ api_version }}

{% endif %}
{# Filters #} {% if filter_form %}

Filters

{% include "rest_framework/tailwind/forms/filter_form.html" %}
{% endif %}
{% endblock %}