TD interview question

How to make REST API?