Domanda di colloquio di Ericsson

How to design a REST API, and what principles are applied?