DISH interview question

Explain how a REST API works.