Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/api/apidoc.html
Show All 35 Lines | <div class='swh-apidoc'> | ||||
<div> | <div> | ||||
<h4> Description </h4> | <h4> Description </h4> | ||||
{{ description | safe_docstring_display | safe }} | {{ description | safe_docstring_display | safe }} | ||||
</div> | </div> | ||||
{% endif %} | {% endif %} | ||||
{% if response_data is not None %} | {% if response_data is not None %} | ||||
<div> | <div> | ||||
<h4>Request</h4> | <h4>Request</h4> | ||||
<pre><strong>{{ request.method }}</strong> {{ request.path }}</pre> | <pre><strong>{{ request.method }}</strong> {{ request.build_absolute_uri }}</pre> | ||||
<hr/> | <hr/> | ||||
<h4>Response</h4> | <h4>Response</h4> | ||||
{% if status_code != 200 %} | {% if status_code != 200 %} | ||||
<h5>Status Code</h5> | <h5>Status Code</h5> | ||||
<pre>{{ status_code }}</pre> | <pre>{{ status_code }}</pre> | ||||
{% endif %} | {% endif %} | ||||
{% if headers_data %} | {% if headers_data %} | ||||
<h5>Headers</h5> | <h5>Headers</h5> | ||||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |