diff --git a/templates/v5.5/apigateway.tmpl b/templates/v5.5/apigateway.tmpl index 1c83dd11..48f016e8 100644 --- a/templates/v5.5/apigateway.tmpl +++ b/templates/v5.5/apigateway.tmpl @@ -29,8 +29,8 @@ include "{{ ncgconfig.nms.visibility_dir }}{{ declaration.location.uri }}-{{ v } {% if declaration.paths -%} {% for path in declaration.paths|sort(attribute='path', reverse = True) %} -location {% if '{' not in path.path %}={% else %}~{% endif %} {% if declaration.location.uri != "/" %}{{ declaration.location.uri }}{% endif %}{{ path.path | regex_replace('{(.*?)}','(.*)') }} { - status_zone {% if declaration.location.uri != "/" %}{{ declaration.location.uri }}{% endif %}{{ path.path | regex_replace('{(.*?)}','(.*)') }}; +location {% if '{' not in path.path %}={% else %}~{% endif %} {% if declaration.location.uri != "/" %}{{ declaration.location.uri }}{% endif %}{{ path.path | regex_replace('{(.*?)}','([^/]+)') }} { + status_zone {% if declaration.location.uri != "/" %}{{ declaration.location.uri }}{% endif %}{{ path.path | regex_replace('{(.*?)}','([^/]+)') }}; {% for method in path.methods -%} # {{ method.method|upper }} - operationId: {{ method.details.operationId }}