


@api.route('/{{method_name}}', methods=['POST'])
def {{method_name}}():
    """
    {
    {%- for field in fields%}
    {%- if field.name != 'id' %}
    "{{field.name}}": "{{field.type}}"{%-if not loop.last -%}, {%- endif -%}
    {%- endif%}
    {%- endfor%}
    }
    """
    domain = request.get_json()
    return {{class_name_snake}}_service.{{method_name}}(domain)