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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...