Wipro interview question

How to optimize api for your application?