"""Autogenerated API"""
{% if register_as_plugin %}
from argus_cli.plugin import register_command
{% endif %}

{% for method in endpoint %}
{% if register_as_plugin -%}
@register_command(extending=({%- for part in path -%} "{{part}}" {%- if not loop.last -%}, {%- endif -%}{%- endfor -%}))
{%- endif -%}
{{ method.to_template }}
{% endfor %}