{% with FORMAT_PARAM|add:"="|add:format as param %}
[<ahref='{{ request.get_full_path|add_query_param:param }}'rel="nofollow">{{ format }}</a>]
{% endwith %}
{% endfor %}
</div>
<h2>GET: {{ name }}</h2>
<divclass="btn-group format-selection">
<aclass="btn btn-primary js-tooltip"href='{{ request.get_full_path }}'rel="nofollow"title="Do a GET request on the {{ name }} resource">GET</a>
{% for format in available_formats %}
{% with FORMAT_PARAM|add:"="|add:format as param %}
<aclass="btn js-tooltip"href='{{ request.get_full_path|add_query_param:param }}'rel="nofollow"title="Do a GET request on the {{ name }} resource with the format set to `{{ format }}`">{{ format }}</a>