Changeset View
Changeset View
Standalone View
Standalone View
swh/web/ui/templates/api.html
{% extends "layout.html" %} | {% extends "layout.html" %} | ||||
{% block title %}Software Heritage API Overview{% endblock %} | {% block title %}API Overview{% endblock %} | ||||
{% block content %} | {% block content %} | ||||
<div class="api-doc"> | <div class="api-doc"> | ||||
{% for route, doc in doc_routes %} | {% for route, doc in doc_routes %} | ||||
<div class="api-doc-route"> | <div class="api-doc-route"> | ||||
<h2> <a href="{{ route }}">{{ route }}</a> </h2> | <h2> <a href="{{ route }}">{{ route }}</a> </h2> | ||||
{% autoescape off %}{{ doc | safe_docstring_display }}{% endautoescape %} | {% autoescape off %}{{ doc | safe_docstring_display }}{% endautoescape %} | ||||
</div> | </div> | ||||
</br> | </br> | ||||
{% endfor %} | {% endfor %} | ||||
</div> | </div> | ||||
{% endblock %} | {% endblock %} |