2012-04-13 11:24:57 +02:00
|
|
|
{% extends "NelmioApiDocBundle::layout.html.twig" %}
|
|
|
|
|
|
|
|
{% block content %}
|
2013-02-21 15:47:20 -03:00
|
|
|
{% for section, sections in resources %}
|
2013-02-25 17:27:09 -03:00
|
|
|
{% if section != '_others' %}
|
|
|
|
<div id="section">
|
2013-02-21 15:56:10 -03:00
|
|
|
<h1>{{ section }}</h1>
|
|
|
|
{% endif %}
|
2013-02-21 15:47:20 -03:00
|
|
|
{% for resource, methods in sections %}
|
|
|
|
<li class="resource">
|
|
|
|
<div class="heading">
|
2013-02-25 17:27:09 -03:00
|
|
|
{% if section == '_others' and resource != 'others' %}
|
2013-02-21 15:47:20 -03:00
|
|
|
<h2>{{ resource }}</h2>
|
2013-03-20 10:02:20 -03:00
|
|
|
{% elseif resource != 'others' %}
|
2013-02-21 15:47:20 -03:00
|
|
|
<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 %}
|
2013-02-25 17:27:09 -03:00
|
|
|
{% if section != '_others' %}
|
|
|
|
</div>
|
2013-03-17 16:40:31 +01:00
|
|
|
{% endif %}
|
2012-04-13 11:24:57 +02:00
|
|
|
{% endfor %}
|
|
|
|
{% endblock content %}
|