{% extends "docs/base_docs.html" %} {% block docs_content %}

API: {{ group.title }}

{{ group.description }}

Every HTML route returns JSON with Accept: application/json. Authentication: session cookie, X-API-KEY, Authorization: Bearer or Basic.

{% for item in endpoints %}
{{ item.method }}{{ item.path }}{{ item.min_role }}
{{ item.title }} {% if item.description %}

{{ item.description }}

{% endif %} {% if item.fields %} {% for f in item.fields %}{% endfor %}
FieldTypeLocationRequired
{{ f.name }}{% if f.enum %}
Allowed: {{ f.enum | join(', ') }}
{% endif %}
{{ f.type }}{{ f.location }}{{ 'yes' if f.required else 'no' }}
{% endif %}
{% if item.interactive %}{% endif %}
{{ item.curl }}
{% if item.interactive %} {% endif %}
{% endfor %} {% if services %}

Live services

{% for service in services %}
{{ service.title }} {{ service.name }}

{{ service.description }}

Fields: {% for f in service.fields %}{{ f.key }} ({{ f.type }}){% if not loop.last %}, {% endif %}{% endfor %}

{% endfor %} {% endif %} {% endblock %} {% block extra_js %}{% endblock %}