Infosys interview question

How to develop a simple rest service?