Ask a Question

Need help on rest service mocking based on input value.

Apoorva6
Frequent Contributor

Need help on rest service mocking based on input value.

Hi Team,

I have this rest URI : http://aporamam:8089/restservices/myidgenerate/v1/myids/getmyidData/1929

here 1929 is the userid within resource path. user id can change. I need to mock the rest response, in such a way that my mock response should work with any user id. I will be saving my mock response in a C:\users\mockpath\ directory. response will be saved in {userid}.json  in this directory. for example C:\users\mockpath\1929.json,  C:\users\mockpath\1930.json etc.

 

Please help to mock this. As of now i am able to mock with one id only and not like for different  input to give back different mock responses.

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: