{% load staticfiles %} {% load rest_framework %} {% load i18n %} {% block head %} {% block meta %} {% endblock %} {% block favicon %} {% endblock favicon %} {% block title %}{% if name %}{{ name }} – {% endif %}API Browser{% endblock %} {% block styles %} {% block bootstrap_theme %} {% comment %} {% endcomment %} {% endblock %} {% block default_style %} {# This is the DjangoRestFramework's "default styles". #} {% endblock default_style %} {% block reStructuredText_style %} {# Styling for reStructuredText documentation (docutils defaults) #} {% endblock reStructuredText_style %} {% block pygments_style %} {% endblock pygments_style %} {% block custom_style %} {% endblock custom_style %} {% block api_browser_style %} {% endblock %} {% endblock styles %} {% block icons %} {% endblock icons %} {% endblock %} {% block extra_head %}{% endblock %} {% block body %}
{% block navbar %}{% endblock %}
{% if messages %} {% endif %} {% block breadcrumbs %} {% endblock %}
{% block action_buttons %} {% if 'GET' in allowed_methods %}
{% if api_settings.URL_FORMAT_OVERRIDE %}
GET
{% else %} GET {% endif %}
{% endif %} {% if options_form %}
{% endif %} {% if delete_form %} {% endif %} {% if filter_form %} {% endif %} {% endblock action_buttons %}
{% block description %} {{ description }} {% endblock %}
{% block allowed_methods %}

Allowed Methods / Fields


    {% for action, attrs in metadata_actions.items %}
  • {{ action }}
      {% for attr, fields in attrs.items %}
    • {{ attr }} {# Use tables for field attributes #} {# {% comment %} #} {% for k, v in fields.items %} {% if k == 'choices' %} {% else %} {% endif %} {% endfor %}
      {{ k }}: {# Use a table for choices #} {% comment %} {% for choice in v %} {% endfor %}
      display_name value
      {{ choice.display_name }} {{ choice.value }}
      {% endcomment %} {# Use a list for choices #} {# {% comment %} #}
        {% for choice in v %}
      • {{ choice }}
      • {% endfor %}
      {# {% endcomment %} #}
      {{ k }}: {{ v }}
      {# {% endcomment %} #} {# Use lists for field attributes #} {% comment %}
        {% for k, v in fields.items %} {% if k == 'choices' %}
      • {{ k }}:
          {% for choice in v %}
        • {{ choice }}
        • {% endfor %}
      • {% else %}
      • {{ k }}: {{ v }}
      • {% endif %} {% endfor %}
      {% endcomment %}
    • {% endfor %}
  • {% endfor %}
{% endblock allowed_methods %} {% block content_types %}

Content Types


Accepts

    {% for f in metadata_parses %}
  • {{ f }}
  • {% endfor %}

Renders

    {% for f in metadata_renders %}
  • {{ f }}
  • {% endfor %}
{% endblock content_types %} {% if paginator %} {% endif %}
{{ 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_quoted_links }}
{% endfor %} {% endautoescape %}
{% autoescape off %} {{ content|safe }} {% endautoescape %}
{% if display_edit_forms %}
{% if post_form or raw_data_post_form %}
{% if post_form %} {% endif %}
{% if post_form %}
{% with form=post_form %}
{% csrf_token %} {{ post_form }}
{% endwith %}
{% endif %}
{% with form=raw_data_post_form %}
{% include "rest_framework/raw_data_form.html" %}
{% endwith %}
{% endif %} {% if put_form or raw_data_put_form or raw_data_patch_form %}
{% if put_form %} {% endif %}
{% if put_form %}
{{ put_form }}
{% endif %}
{% with form=raw_data_put_or_patch_form %}
{% include "rest_framework/raw_data_form.html" %}
{% if raw_data_put_form %} {% endif %} {% if raw_data_patch_form %} {% endif %}
{% endwith %}
{% endif %}
{% endif %}
{% block footer %}{% endblock %} {% block script %} {# API Browser custom Javascript #} {% endblock %} {% if filter_form %} {{ filter_form }} {% endif %} {# Pages that extend this template can put Javascript here. #} {% block js %}{% endblock %} {% endblock %}