{% extends "base.html" %} {# OpenAPI Reference Endpoint Template Three-panel layout optimized for REST API documentation. Uses the unified autodoc skeleton with OpenAPI-specific extensions. This template receives: - element: DocElement for the endpoint - config: Autodoc configuration - site: Site instance #} {% from 'partials/navigation-components.html' import breadcrumbs, page_navigation, toc with context %} {% block content %} {# Three-panel REST API layout #}
{# Left Sidebar: Navigation #} {# Center: Endpoint Documentation #}
{# Breadcrumbs #} {{ breadcrumbs(page) }} {# Article Content - New autodoc skeleton #}
{# Header with method badge #}
{% if element.metadata.deprecated %}
Deprecated
{% endif %}

{{ element.metadata.method | upper }} {{ element.metadata.path }}

{% if element.metadata.summary or element.description %}

{{ element.metadata.summary or element.description }}

{% endif %} {% if element.metadata.operation_id %}
Operation ID: {{ element.metadata.operation_id }}
{% endif %}
{# Parameters Section #} {% if element.metadata.parameters %} {% set params = element.metadata.parameters %} {% set title = 'Parameters' %} {% include 'autodoc/partials/params-table.html' %} {% endif %} {# Request Body Section #} {% if element.metadata.request_body %}

Request Body

{% if element.metadata.request_body.get('description') %}

{{ element.metadata.request_body.get('description') }}

{% endif %} {% if element.metadata.request_body.get('content') %}
{% for content_type, schema in element.metadata.request_body.get('content', {}).items() %} {{ content_type }} {% endfor %}
{% endif %}
{% endif %} {# Responses Section #} {% if element.metadata.responses %}

Responses

{% for status_code, response in element.metadata.responses.items() %} {% endfor %}
Status Description Content Type
{{ status_code }} {{ response.get('description', 'No description') }} {% for content_type in response.get('content', {}).keys() %} {{ content_type }}{% if not loop.last %}, {% endif %} {% endfor %}
{% endif %} {# Tags #} {% if page.tags %}
Tagged {% from 'partials/content-components.html' import tag_list with context %} {{ tag_list(page.tags) }}
{% endif %}
{# Page navigation (prev/next) at bottom #} {{ page_navigation(page) }}
{# Right Panel: Code Examples #}
{# Mobile sidebar toggle button #} {# Sidebar overlay for mobile #} {% endblock %}