Tech Mahindra Interview Question

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