I want to return the dynamic response from the postman mock server.
When mock URL hits in the postman, we get request body and from request body I want to fetch the field value and return the value to response.
mock URL : {{url}}/customer
RequestBody:
{
"Id": 47896,
"name": userName
}
I want to send the Id value in the Response Body:
{
"Id":47896
}
We are creating the random Id value in our project and we hit mock URL with that value in request body.
Every time the id value will be different after calling the mock URL. we are processing on the Id value if it mismatch then we throw an error.
Anyway to process the request body?
In the postman documentation, I didn't find any conclusive solution.