mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
32e80af4dc
Signed-off-by: Daniel Ribeiro <drgomesp@gmail.com>
34 lines
1.2 KiB
Twig
34 lines
1.2 KiB
Twig
{% extends "NelmioApiDocBundle::layout.html.twig" %}
|
|
|
|
{% block content %}
|
|
{% for section, sections in resources %}
|
|
{% if section != '_others' %}
|
|
<div id="section">
|
|
<h1>{{ section }}</h1>
|
|
{% endif %}
|
|
{% for resource, methods in sections %}
|
|
<li class="resource">
|
|
<div class="heading">
|
|
{% if section == '_others' and resource != 'others' %}
|
|
<h2>{{ resource }}</h2>
|
|
{% elseif resource != 'others' %}
|
|
<h2>{{ resource }}</h2>
|
|
{% endif %}
|
|
</div>
|
|
<ul class="endpoints">
|
|
<li class="endpoint">
|
|
<ul class="operations">
|
|
{% for data in methods %}
|
|
{% include 'NelmioApiDocBundle::method.html.twig' %}
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
{% endfor %}
|
|
{% if section != '_others' %}
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endblock content %}
|