Forum Discussion

John0019's avatar
John0019
New Contributor
12 months ago

Ready API Virtual Service (Mock Service)

Hello Team - I'm working on the Ready API virtual service component, building virtual/mock services. I have problem where I could not get the value from the incoming mock request and send the same value in the virtual response dynamically on the fly.

Example:

The customerId: abcd1234 is unique per request and it has to be fetched from request and passed in the response dynamically.

Json request payload:

Request URI: POST https://:8001/v1.0/customer/abcd1234/

Request body: 

{

"customerId": "abcd1234",

  "customerName": "John Doe",

}

 

Response Payload:

{

"customerId": "abcd1234",

  "customerName": "John Doe",

"customerAddress: ""

"customerOtherDetials: ""

}

 

 

 

 

  • nmrao's avatar
    nmrao
    Champion Level 3

    Please see if the below video links which might be of helpful