Tech Mahindra interview question

Can you explain a REST API you developed and how you handled error handling and performance optimization in that application?