{% extends 'generic/object.html' %} {% load i18n %} {% block content %}
{% trans "OpenAPI Schema" %}
{% if openapi_data.error %} {% else %}
{% trans "Title" %} {{ openapi_data.schema.title }}
{% trans "Schema Version" %} {{ openapi_data.schema.version }}
{% trans "Backend Version" %} {{ openapi_data.backend_version|default:"unknown" }}
{% trans "Cache" %} {% if openapi_data.cache_hit %} {% trans "Hit" %} {% elif openapi_data.cache_forced %} {% trans "Forced Refresh" %} {% else %} {% trans "Refreshed" %} {% endif %}
{% trans "Last Refreshed" %} {{ openapi_data.refreshed_at|default:"—" }}
{% trans "Paths" %} {{ openapi_data.schema.stats.paths }}
{% trans "Operations" %} {{ openapi_data.schema.stats.operations }}
{% trans "Schemas" %} {{ openapi_data.schema.stats.schemas }}
{% trans "Security Schemes" %} {{ openapi_data.schema.stats.security_schemes }}
{% endif %}
{% if not openapi_data.error and openapi_data.schema.tags %}
{% trans "Tags" %}
{% for tag in openapi_data.schema.tags %} {{ tag }} {% endfor %}
{% endif %} {% if not openapi_data.error and openapi_data.schema.security_schemes %}
{% trans "Auth Schemes" %}
{% for item in openapi_data.schema.security_schemes %} {% endfor %}
{% trans "Name" %} {% trans "Type" %}
{{ item.name }} {{ item.type|default:"—" }}
{% endif %}
{% if not openapi_data.error and openapi_data.schema.description %}
{% trans "Description" %}

{{ openapi_data.schema.description }}

{% endif %} {% if not openapi_data.error and openapi_data.schema.servers %}
{% trans "Servers" %}
{% for server in openapi_data.schema.servers %} {% endfor %}
{% trans "URL" %} {% trans "Description" %}
{{ server.url }} {{ server.description|default:"—" }}
{% endif %} {% if not openapi_data.error %}
{% trans "Endpoints" %}
{% for op in openapi_data.schema.operations %} {% empty %} {% endfor %}
{% trans "Method" %} {% trans "Path" %} {% trans "Summary" %} {% trans "Operation ID" %} {% trans "Tags" %}
{{ op.method }} {{ op.path }} {{ op.summary|default:"—" }} {{ op.operation_id|default:"—" }} {{ op.tags|default:"—" }}
{% trans "No operations found in schema." %}
{% endif %} {% endblock %}