{% extends "base.html" %} {% load rest_framework wger_extras django_bootstrap_breadcrumbs static crispy_forms_tags %} {% block header %} {% endblock %} {% block title %}REST API - {{ name }}{% endblock %} {# #} {# Breadcrumbs #} {# #} {% block breadcrumbs %} {{ block.super }} {% breadcrumb "Api Documentation" "software:api" %} {% for breadcrumb_name, breadcrumb_url in breadcrumblist %} {% breadcrumb_raw breadcrumb_name breadcrumb_url %} {% endfor %} {% endblock %} {% block content %} {# #} {# GET button #} {# #} {% if 'GET' in allowed_methods %}
GET
{% endif %} {# #} {# OPTIONS button #} {# #} {% if options_form %}
{% csrf_token %}
{% endif %} {# #} {# DELETE button #} {# #} {% if delete_form %}
{% csrf_token %}
{% endif %}
{# #} {# Object/endpoint description #} {# #}
{% block description %}

{{ description }}

{% endblock %}
{{ request.method }} {{ request.get_full_path }}
                
HTTP {{ response.status_code }} {{ response.status_text }}{% autoescape off %} {% for key, val in response_headers.items %} {{ key }}: {{ val|break_long_headers|urlize }} {% endfor %}
{{ content|urlize }}
{% endautoescape %}
{% endblock %}