Sendoso interview question

How to design a rest api