Method to support multiple versions of apis and to control run-time execution of an api
AssigneeInternational Business Machines Corporation
InventorsKeerti S. Chauhan, Pawan K. Chawdhary, Shunmuga Raja Periadurai
Life of this patent
Estimating the term…
Abstract
In an approach to API versioning, annotations are provided to differentiate among two or more versions of an API. Statistics associated with the two or more versions of the API are collected. A call from a client to access one of the two or more versions of the API is intercepted. A best-fit version for the client is identified based on employing analytical elements on the collected statistics. API execution is re-routed to the identified best-fit version during run-time.
Claims20
A computer-implemented method for API versioning, the method comprising:
- providing, by one or more computer processors, annotations differentiating two or more versions of an API;
- collecting, by one or more computer processors, statistics associated with the two or more versions of the API;
- intercepting, by one or more computer processors, a call from a client to access one of the two or more versions of the API;
- identifying, by one or more computer processors, a best-fit version for the client based on employing analytical elements on the collected statistics;
- and
- re-routing, by one or more computer processors, API execution to the identified best-fit version during run-time.
A computer program product for API versioning, the computer program product comprising:
- one or more computer readable storage media and program instructions stored on the one or more computer readable storage media, the program instructions comprising:
- program instructions to provide annotations differentiating two or more versions of an API;
- program instructions to collect statistics associated with the two or more versions of the API;
- program instructions to intercept a call from a client to access one of the two or more versions of the API;
- program instructions to identify a best-fit version for the client based on employing analytical elements on the collected statistics;
- and
- program instructions to re-route API execution to the identified best-fit version during run-time.
A computer system for API versioning, the computer system comprising:
- one or more processors;
- one or more computer readable storage media;
- and
- program instructions stored on the one or more computer readable storage media for execution by at least one of the one or more processors, the program instructions comprising:
- program instructions to provide annotations differentiating two or more versions of an API;
- program instructions to collect statistics associated with the two or more versions of the API;
- program instructions to intercept a call from a client to access one of the two or more versions of the API;
- program instructions to identify a best-fit version for the client based on employing analytical elements on the collected statistics;
- and
- program instructions to re-route API execution to the identified best-fit version during run-time.
Dependencies are inferred from the claim text.