Replies: 1 comment 1 reply
-
|
Hi, Could you try using the latest version of insomnia and let me know if you're still facing the same issue? You can directly add /:item_id in the url and give the value in the path parameter value field. Thank you. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a web service I'm trying to connect to that provides its response based on the extension passed in via the URL (e.g.
.xmlor.json), rather than theAcceptHTTP header.When passing path parameters in the URL, the path looks like
/get_item/:item_id.xml, but Insomnia treatsitem_id.xmlas the name of the parameter.Ideally this would just work, with the
.functioning like a/in ending the path parameter token name, but failing that it would be nice if there was some optional way to forcibly indicate the end of a parameter name (e.g./get_item/:{item_id}.xmlor similar), to allow these kinds of URLs to be modelled with path parameters.In the meantime my workaround has been to use an unchecked query parameter, then set the URL in Insomnia to
/get_item/{% request 'parameter', 'item_id', 0 %}.xml, but unchecked parameters feel much less appropriate than path parameters for this purpose.Beta Was this translation helpful? Give feedback.
All reactions