Egnyte interview question

What is a REST API? How would you implement one?