US 12,293,241 B2
Automated generation of application programming interfaces for microservices
Vini Kanvar, New Delhi (IN); Ridhi Jain, Jhansi (IN); Srikanth Govindaraj Tamilselvam, Chennai (IN); Amith Singhee, Bangalore (IN); and Shivali Agarwal, Ghaziabad (IN)
Assigned to International Business Machines Corporation, Armonk, NY (US)
Filed by INTERNATIONAL BUSINESS MACHINES CORPORATION, Armonk, NY (US)
Filed on Jun. 14, 2022, as Appl. No. 17/806,812.
Prior Publication US 2023/0409417 A1, Dec. 21, 2023
Int. Cl. G06F 9/54 (2006.01)
CPC G06F 9/547 (2013.01) 17 Claims
OG exemplary drawing
 
1. A computer-implemented method, comprising:
obtaining software classes of a plurality of microservices, wherein each microservice comprises one or more software classes;
analyzing the software classes of the plurality of microservices to identify a cross-microservice dependency on a software function that cannot be resolved by moving the software function to a single microservice, which makes the software function eligible for conversion to an application programming interface (API) format that exposes the software function to client microservices that depend on the software function;
determining, a server microservice to host a software class that includes the software function, and one or more client microservices that depend on the software function; and
generating deployable source code implementing an API that exposes the software function hosted by the server microservice to the client microservices that depend on the software function, wherein the API uses a software wrapper to encapsulate software function semantics used by a monolith application which has been refactored into the plurality of microservices.