mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
49 lines
1.8 KiB
Twig
49 lines
1.8 KiB
Twig
{% extends "NelmioApiDocBundle::layout.html.twig" %}
|
|
|
|
{% block content %}
|
|
<div id="summary">
|
|
<ul>
|
|
{% for section, sections in resources %}
|
|
<li><a href="#section-{{ section }}">{{ section }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% for section, sections in resources %}
|
|
{% if section != '_others' %}
|
|
<li class="section{{ defaultSectionsOpened? ' active':'' }}">
|
|
<div class="actions">
|
|
<a class="action-show-hide">Show/hide</a>
|
|
<a class="action-list">List Operations</a>
|
|
<a class="action-expand">Expand Operations</a>
|
|
</div>
|
|
<h1>{{ section }}</h1>
|
|
<ul class="section-list" {% if not defaultSectionsOpened %}style="display: none"{% endif %}>
|
|
{% endif %}
|
|
{% for resource, methods in sections %}
|
|
<a id="section-{{ section }}"></a>
|
|
<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' %}
|
|
</ul>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endblock content %}
|