Xplore (WA) interview question

How would you design an API