{% load drf_auto %} {% for method_name in all_methods %} {% if method_name in fields.IN or method_name in fields.OUT %}

{{ method_name }}: {% if method_name in methods_docs %}{{ methods_docs|get_item:method_name }}{% endif %}

{% if method_name in fields.IN and method_name in fields.OUT %} {% elif method_name in fields.IN %}

Принимает:

{% include 'drf_auto/blocks/subfields_list.html' with fields=fields.IN|get_item:method_name %} {% elif method_name in fields.OUT %}

Возвращает:

{% include 'drf_auto/blocks/subfields_list.html' with fields=fields.OUT|get_item:method_name %} {% endif %} {% endif %} {% endfor %}