BlueCat interview question

How would you design RESTAPI?