I am using Postman 7.34.0
Now i am testing to use Postman to create mock server and mock data for the request.
After some study, i still did not get to make a flexible response in the mock data.
I have the update api and i will set pathParams, queryParams and also body to update the data.
So i want my mock data response to include some of the data from the update request.
I also check this Postman Mock Data, it has the below description to use {{userId}} in the response.
For example
PUT {baseUrl}/:ouId/:customerServiceId
So I added the mock example to response like below:
But when i sent the update request, i got as below:
I am wondering if i am doing wrong or postman not support the features?
And also would like to know does postman support mock response to have scripting. I just saw the 'Pre request script' and 'Test' can write script. For the mock example, it seems can only add the static data and not able to write script to build up the fake response data structure.