Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/api/apidoc.html
Show All 9 Lines | |||||
{% load swh_templatetags %} | {% load swh_templatetags %} | ||||
{% block title %}{{ heading }} – Software Heritage API {% endblock %} | {% block title %}{{ heading }} – Software Heritage API {% endblock %} | ||||
{% block navbar-content %} | {% block navbar-content %} | ||||
<nav class="bread-crumbs"> | <nav class="bread-crumbs"> | ||||
<ul> | <ul> | ||||
<li><a href="/api/"><h4>Web API</h4></a></li> | <li><a href="/api/"><h4>Web API</h4></a></li> | ||||
<li class="bc-no-root"><i class="fa fa-caret-right fa-fw" aria-hidden="true"></i></li> | <li class="bc-no-root"><i class="mdi mdi-menu-right mdi-fw" aria-hidden="true"></i></li> | ||||
<li class="bc-no-root"><a href="/api/1/">endpoints</a></li> | <li class="bc-no-root"><a href="/api/1/">endpoints</a></li> | ||||
{% for endpoint in endpoint_path %} | {% for endpoint in endpoint_path %} | ||||
<li class="bc-no-root"><i class="fa fa-caret-right fa-fw" aria-hidden="true"></i></li> | <li class="bc-no-root"><i class="mdi mdi-menu-right mdi-fw" aria-hidden="true"></i></li> | ||||
{% if endpoint.name != 'stat' and endpoint.name != 'vault' and endpoint.path != 'vault/revision/doc/' %} | {% if endpoint.name != 'stat' and endpoint.name != 'vault' and endpoint.path != 'vault/revision/doc/' %} | ||||
<li class="bc-no-root"><a href="{{ '/api/1/'|add:endpoint.path }}">{{ endpoint.name }}</a></li> | <li class="bc-no-root"><a href="{{ '/api/1/'|add:endpoint.path }}">{{ endpoint.name }}</a></li> | ||||
{% else %} | {% else %} | ||||
<li class="bc-no-root"><span>{{ endpoint.name }}</span></li> | <li class="bc-no-root"><span>{{ endpoint.name }}</span></li> | ||||
{% endif %} | {% endif %} | ||||
{% endfor %} | {% endfor %} | ||||
</ul> | </ul> | ||||
</nav> | </nav> | ||||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |