cancel
Showing results for 
Search instead for 
Did you mean: 

how to create POST login API virtual service

New Contributor

how to create POST login API virtual service

Hi All,

 

i have a scenario where i need to create a POST login API virtual service

 

1. We have a login page which accepts username and password.

2. On click of submit button Login API is called which is a POST method.

3. So how to create POST API virtual service using ReadyAPI ServiceV tool.

 

Regards,

Vedesh

3 REPLIES 3
Moderator

Re: how to create POST login API virtual service

Hi Vedesh, 

 

Here is the Tutorial for ServiceV: https://support.smartbear.com/readyapi/docs/servicev/tutorials/creating-virt/basic-concepts.html


Anastasia
Customer Care Team


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

New Contributor

Re: how to create POST login API virtual service

Hi Nastya,

 

Thanks for the reply.

 

I had a look at the solution, but i am still unable to indentify how to add/send "Username and Password" in the body of Post Request.

 

For Get method, i can use "Parameter" under Dispatch style and add the username and password as Query, but for POST how to achieve it..

 

Thanks,

Vedesh

Highlighted
Moderator

Re: how to create POST login API virtual service

Vedesh,

 

You can always use the Script Dispatch Style: https://support.smartbear.com/readyapi/docs/servicev/configure/dispatch/script.html

Maybe, the XPath will also suite you: https://support.smartbear.com/readyapi/docs/servicev/configure/dispatch/xpath.html


Anastasia
Customer Care Team


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

New Here?
Join us and watch the welcome video:
Top Kudoed Authors