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

{{ name }}

{% if markeddown.view %}{% autoescape off %}{{ markeddown.view }}{% 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 }}

{% if markeddown.GET %}

{% autoescape off %}{{ markeddown.GET }}{% endautoescape %}

{% endif %}
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 }}

{% if markeddown.POST %}

{% autoescape off %}{{ markeddown.POST }}{% endautoescape %}

{% endif %} {% 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 }}

{% if markeddown.PUT %}

{% autoescape off %}{{ markeddown.PUT }}{% endautoescape %}

{% endif %} {% 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 }}

{% if markeddown.DELETE %}

{% autoescape off %}{{ markeddown.DELETE }}{% endautoescape %}

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