Responses by requests

I’m working on the development of mock server of an API project. Recently, I needed to return response examples by parameters in request body.

Take a look at the example.

If request body looks like below

{"id": 1}

Server should return the following response

{"id": 1, "name": "Foo"}

Not sure it is possible. Anyone implemented before?