From Mainframe to Microservices: Leveraging APIs to Accelerate Legacy Modernization