Virtusa interview question

How to dynamically change rest apis response based on client