diff --git a/templating/matrix_templates/templates/http-api.tmpl b/templating/matrix_templates/templates/http-api.tmpl index a4d9af24..27d3ddc9 100644 --- a/templating/matrix_templates/templates/http-api.tmpl +++ b/templating/matrix_templates/templates/http-api.tmpl @@ -21,13 +21,13 @@ Request format: {% if (endpoint.req_param_by_loc | length) %} {{ tables.split_paramtable(endpoint.req_param_by_loc) }} - -{% if (endpoint.req_body_tables) -%} +{% if (endpoint.req_body_tables) %} {% for table in endpoint.req_body_tables -%} {{"``"+table.title+"``" if table.title else "" }} {{ tables.paramtable(table.rows) }} {% endfor -%} {% endif -%} + {% else %} `No parameters` {% endif %}