Forum Discussion
So to add an example:
Some REST requests are:
GET myserver.com/{ID_user}
PUT myserver.com/{ID_user}
DELETE myserver.com/{ID_user}
PATCH myserver.com/{ID_user}
POST myserver.com/{ID_user}/verify
GET myserver.com/{ID_user}/verify/{ID_number}
PUT myserver.com/{ID_user}/verify/{ID_number}
DELETE myserver.com/{ID_user}/verify/{ID_number}
I tried to make a new REST services under the Projects tab to be able to run tests from SoapUI Pro to those endpoints.
My initial thought was that I could then call these endpoints in test cases as part of a testsuite.
How can I put the {ID_user} value in the URL of a REST resource endpoint to run testcases, it seems to only accept static values and I want to look up random users without predefinding them in a list.
Tried setting up the Rest services like this:
Endpoint: Ressource: Parameters:
GET myserver.com/ {ID_user}
Or is my approach totally off? :)
If anyone has a better way to pull this off I'd love some input or another approach to dynamic URLs.