Delivery Hero interview question

Describe best practice when building API