Forum Discussion

chathurad's avatar
chathurad
Contributor
6 years ago

How to add two blank parameters on the URL

There is a GET API which looks like below.

https://xxxx.amazonaws.com/dev/school/nearby/New Zealand/Wellington

This is how its defined at swaggerhub.

/dev/school/nearby/{country}/{city}

 

How should i implemant this on SoapUI. I have previusly work with 1 Curly brackets  values , But dont no how to work with 2 Curly brackets  values.

 

1 Reply

  • JHunt's avatar
    JHunt
    Community Hero
    Each one should be set up as a Parameter. Open the Resource Editor by double clicking on it and click the green + to add parameters. For this type of URL, set the Style to TEMPLATE.

    Now in each Request or TestRequestStep you can set individual values.

    When you first add the resource to your project, if you use "New Rest Resource from URI", simply enter both curly brackets at that time. The parameters will be created automatically.