Infosys Interview Question

How to develop a simple rest service?