Modify request URL based on user input
Posted: Fri Aug 01, 2014 4:45 pm
by Moe
Is there a way to use curly brackets to modify the URL of a Post Request? I would like to have the URL address change based on what a user puts in? for example if a user enters mydomain.com the URL should change from: http://api.nsvsolution.com/v1/encoder
to: http://mydomain.com/v1/encoder
Thanks
Modify request URL based on user input
Posted: Fri Aug 01, 2014 5:49 pm
by Kateryna Grynko
Hi Moe,
Please specify this URL in service settings:prehttp://{domain}/v1/encoder/preAnd add a request parameter 'domain'.
Any data passed to this parameter will automatically replace code{domain}/code in service URL.