{% load urlize_quoted_links %}{% load add_query_param %} {% if ADMIN_MEDIA_PREFIX %} {% else %} {% endif %} Django REST framework - {{ name }}
{% if 'OPTIONS' in view.allowed_methods %}
{% csrf_token %}
{% endif %}

{{ name }}

{% if markeddown %}{% autoescape off %}{{ markeddown }}{% endautoescape %}{% else %}{{ description|linebreaksbr }}{% endif %}

{{ response.status }} {{ response.status_text }}{% autoescape off %}
{% for key, val in response.headers.items %}{{ key }}: {{ val|urlize_quoted_links }}
{% endfor %}
{{ content|urlize_quoted_links }}
{% endautoescape %}
{% if 'GET' in view.allowed_methods %}

GET {{ name }}

GET {% for format in available_formats %} {% with FORMAT_PARAM|add:"="|add:format as param %} [{{ format }}] {% endwith %} {% endfor %}
{% endif %} {# Only display the POST/PUT/DELETE forms if method tunneling via POST forms is enabled and the user has permissions on this view. #} {% if METHOD_PARAM and response.status != 403 %} {% if 'POST' in view.allowed_methods %}

POST {{ name }}

{% csrf_token %} {{ post_form.non_field_errors }} {% for field in post_form %}
{{ field.label_tag }} {{ field }} {{ field.help_text }} {{ field.errors }}
{% endfor %}
{% endif %} {% if 'PUT' in view.allowed_methods %}

PUT {{ name }}

{% csrf_token %} {{ put_form.non_field_errors }} {% for field in put_form %}
{{ field.label_tag }} {{ field }} {{ field.help_text }} {{ field.errors }}
{% endfor %}
{% endif %} {% if 'DELETE' in view.allowed_methods %}

DELETE {{ name }}

{% csrf_token %}
{% endif %} {% endif %}