Sendoso Interview Question

How to design a rest api