Xplore (WA) Interview Question

How would you design an API