DISH Interview Question

Explain how a REST API works.