Service Virtualization

 View Only

Specify response body from database results

  • 1.  Specify response body from database results

    Posted Apr 09, 2018 11:56 AM



    We have our service set up using Request Response pairs and connected to a SQL database. For any 1 request body, we can have different responses depending on the data. For example, request body A for user 1 will return response body A but request body B for user 2 will return response body B. 


    Is there a way to set up multiple response pairs to a single request body? If so, if there a way to specify which response body is returned depending on database results? For example, if a database query returns a 1 then send response body A but if the database query returns 2 then send response body B. 


    Thank you!