{% if uuid is not empty %} {% set route = service('routes').getRouteDetails(uuid) %} {% endif %} {% set docs = service('docs').getControllerInfo(route.handler_class,route.handler_method) %} {% set auth = (route.auth > 0) ? service('access').getAuthNames(route.auth) : null %}

{{ title }}

{{ docs.api.description }}

{{ labels.method }}
{{ route.method }}
{{ labels.path }} {{ route.pattern }}
{{ labels.auth }} {% if auth is iterable %} {% for item in auth %}
{{ item }}
{% endfor %} {% else %}
{{ labels.none }}
{% endif %}
{% if docs.api.parameters|length > 0 %} {{ component('system:admin.help.api.details.params',{ title: labels.params, items: docs.api.parameters }) }} {% endif %} {% if docs.response is not empty %}

{{ labels.response }}

{{ labels.content }} {{ docs.response.contentType }}
{{ labels.json }} {{ component('semantic~code',{ language: 'json', hide_copy: true, class: '', trim_space: false, content: docs.response.getJson() }) }}
{% if docs.response.fields|length > 0 %} {{ component('system:admin.help.api.details.params',{ title: labels.fields, hide_reqired: true, items: docs.response.fields }) }} {% endif %} {% endif %} {{ component('system:admin.routes.route',{ route: route }) }}