Jump to content
WAPT Forum
Sign in to follow this  
mewongster

Restful API Parameterization

Recommended Posts

Hi,

Using WAPT for testing a page that uses Restful API urls.

The page I need to parameterize follows this format on a submit requests:

www.site.com/restpath1/restpath2/value

The “value” is the part I am trying to parameterize.

 

I’ve tried created/assigning a “word” parameter, but keep ending up with something like:

www.site.com/restpath1/restpath2/?word=blahblah.com

 

Is it possible to not pass the "?word'" and accomplish something like:

www.site.com/restpath1/restpath2/blahblah.com

 

Does WAPT support this Rest API parameterization?

If it does, could anyone possible send me an example on how to do this?

 

Thanks!

Share this post


Link to post
Share on other sites

You can create a variable in previous request and use it in the URL Path.

Your URL Path will look like /restpath1/restpath2/$Var(some_var_name).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×