diff --git a/swh/web/ui/templates/api.html b/swh/web/ui/templates/api.html index fff40c41b..08b5b76b3 100644 --- a/swh/web/ui/templates/api.html +++ b/swh/web/ui/templates/api.html @@ -1,13 +1,13 @@ {% extends "layout.html" %} {% block title %}Software Heritage API Overview{% endblock %} {% block content %}
{% for route, doc in doc_routes %}

{{ route }}

- {{ doc }} + {% autoescape off %}{{ doc | safe_docstring_display }}{% endautoescape %}

{% endfor %}
{% endblock %} diff --git a/swh/web/ui/templates/apidoc.html b/swh/web/ui/templates/apidoc.html index 18ba24f31..1b947dfea 100644 --- a/swh/web/ui/templates/apidoc.html +++ b/swh/web/ui/templates/apidoc.html @@ -1,84 +1,84 @@ {% extends "layout.html" %} {% block title %}Software Heritage API{% endblock %} {% block content %} {% if docstring %}

Overview

{% autoescape off %} {{ docstring | safe_docstring_display }} {% endautoescape %}
{% endif %} {% if response_data and response_data is not none %}

Request

{{ request.method }} {{ request.url }}

Result

-
 {% autoescape off %} {{ response_data | urlize_api_links }} {% endautoescape %} 
+
{% autoescape off %}{{ response_data | urlize_api_links }}{% endautoescape %}
{% endif %}
{% for url in urls %} {% endfor %}
URL Allowed Methods
{{ url['rule'] }} {{ url['methods'] | sort | join(', ') }}

{% if args and args|length > 0 %}

Args

{% for arg in args %}
{{ arg['name'] }}: {{ arg['type'] }}
{% autoescape off %} {{ arg['doc'] | safe_docstring_display }} {% endautoescape %}
{% endfor %}
{% endif %} {% if excs and excs|length > 0 %}

Raises

{% for exc in excs %}
{{ exc['exc'] }}
{% autoescape off %} {{ exc['doc'] | safe_docstring_display }} {% endautoescape %}
{% endfor %}
{% endif %} {% if return %}

Returns

{{ return['type'] }}
{% autoescape off %} {{ return['doc'] | safe_docstring_display }} {% endautoescape %}
{% endif %} {% if example %}

Example

{{ example }}
{% endif %} {% endblock %}