Hi,
How can i create a REST API resource that accepts a path parameter? The URL parameter appends the value as a query parameter to the api.
I am looking to do something like this:
http://demoapi.com/users/{id}
Is there a way to set the id ?
Thanks!
Hello!
You’re on the right path! The JS curly braces work in the path field as well so you can write http://demoapi.com/users/{{id}}
to generate a url with the id in the path. Attached is a screenshot with an example referencing a component value.
Hope this helps! Let me know if you have any more questions.
- Jane
Janes answer mentions a screenshot. I can’t see it.
I am not able to see the image, is there any sample available for this