Virtusa Interview Question

How to dynamically change rest apis response based on client