insomnia-plugin-path-parameters icon indicating copy to clipboard operation
insomnia-plugin-path-parameters copied to clipboard

change the URL path parameters syntax

Open mugi-luffy opened this issue 3 years ago • 0 comments

is it at all possible to change the syntax from :myparam to {myparam}? The reason for this is that the open api spec uses curly braces for path parameters (see https://swagger.io/docs/specification/describing-parameters/ ). I usually define the endpoint in design first and let ensomnia generate the request for me. Now I'am forced to change all the generated requests manually. When using curly braces, insomnia shows me this:

image

Insomnia seems to changes every {myparam} occurence to {{ myparam }} which means it is expecting a global variable:

image

mugi-luffy avatar Jan 16 '22 11:01 mugi-luffy