Tyl interview question

How would you make this API production-ready?