{% extends "bootstrap/base.html" %} {% import "apidoc/nav.html" as nav %} {% block scripts -%} {{ super() }} {% endblock %} {% block styles -%} {{ super() }} {% endblock styles %} {% block content %} {{ nav.nav() }}
{% for name, svc in services.items() | sort %} {% set svcprivate = svc.get_metadata().private %} {% set svcid = name | replace(".", "-") %}

 {{ name }}

{% for method in svc.enumerate_methods() %} {% set mid = (svcid + '.' + method.name) | replace(".", "-") %}

  {% set params_schema = method["params-schema"]["items"] if "params-schema" in method %} {{ method.name }}( {% for arg in prepare_args(call_args(svc, method.name).args, params_schema) %} {% if arg.reference %} {{ arg.type }} {% elif arg.type %} {{ arg.type }} {% endif %} {{ arg.name }}{% if not loop.last %},{% endif %} {% endfor %} ) {% if method.private or svcprivate %} Private {% endif %}

{{ method.description }}

{% if "docstring" in method %}

{{ method.docstring }}

{% endif %} {% if "params-schema" in method %}
{{ method["params-schema"] | json }}
{% endif %} {% if "result-schema" in method %}
{{ method["result-schema"] | json }}
{% endif %}
{% endfor %} {% endfor %}
{% endblock %}