# US 2022/0283885 A1 · Application programming interface compatibility

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0283885 A1
- Document ID: US20220283885A1
- Status: Published application
- Kind: A1
- Application number: 17/194,982
- Filed: 2021-03-08
- Published: 2022-09-08
- Earliest claimed: 2021-03-08
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Andrew D. Mackenzie; Eric Wittmann
- Web page: https://patentgrep.com/patent/US20220283885A1

## CPC

- G06F 9/547: {Remote procedure calls [RPC]; Web services}
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- G06F 8/61: Installation
- G06F 9/44536: {Selecting among different versions}
- H04L 67/133: Protocols for remote procedure calls [RPC]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A system, comprising a memory and a processor, where the processor is in communication with the memory, is configured to receive a request to determine a compatibility of a first version of an application programming interface (API) with a second version of the API. Next, a model of the first version of the API and a model of the second version of the API is retrieved. Each of the models is parsed to determine a first set of functionality of the first version of the API and a second set of functionality of the second version of the API. The first set of functionality is mapped to the second set of functionality to determine differences between the first set of functionality and the second set of functionality. The compatibility of the first version of the API with the second version of the API is determined based on the differences.

## Claims

### Claim 1

A system, comprising:
a memory; and
a processor in communication with the memory, wherein the processor is configured to:
receive a request to determine a compatibility of a first version of an application programming interface (API) with a second version of the API;
retrieve a model of the first version of the API and a model of the second version of the API;
parse each of the models to determine a first set of functionality of the first version of the API and a second set of functionality of the second version of the API;
map the first set of functionality to the second set of functionality to determine differences between the first set of functionality and the second set of functionality; and
determine the compatibility of the first version of the API with the second version of the API based on the differences.

### Claim 2 (depends on 1)

The system of claim 1, wherein the request includes a required set of functionality, wherein the required set of functionality is a subset of the second set of functionality.

### Claim 3 (depends on 2)

The system of claim 2, wherein determining the compatibility includes verifying inclusion of the required set of functionality in the first set of functionality.

### Claim 4 (depends on 1)

The system of claim 1, wherein each model is retrieved from a server storing a plurality of versions of the API and associated models within a database.

### Claim 5 (depends on 1)

The system of claim 1, wherein the model of the second version of the API is retrieved from a client application.

### Claim 6 (depends on 1)

The system of claim 1, wherein the model of the first version of the API is retrieved from a server application.

### Claim 7 (depends on 1)

The system of claim 1, wherein the processor is further configured to:
upon determining that the first version of the API and the second version of the API are incompatible, modify the second version of the API.

### Claim 8 (depends on 7)

The system of claim 7, wherein modifying the second version of the API comprises:
retrieving an installation package of the first version of the API; and
executing the installation package to transform the second version of the API to the first version of the API.

### Claim 9 (depends on 1)

The system of claim 1, wherein the model of the first version of the API is provided via an http interface.

### Claim 10 (depends on 1)

The system of claim 1, wherein the processor is further configured to:
upon determining that the first version of the API and the second version of the API are compatible, sending a response to the request indicating that the first version of the API is compatible with the second version of the API.

### Claim 11 (depends on 1)

The system of claim 1, wherein differences includes a change to expected inputs or outputs of the first API.

### Claim 12 (depends on 1)

The system of claim 1, wherein differences includes an addition or a removal of a function from the first API.

### Claim 13

A method, comprising:
receiving a request to determine a compatibility of a first version of an application programming interface (API) with a second version of the API;
retrieving a model of the first version of the API and a model of the second version of the API;
parsing each of the models to determine a first set of functionality of the first version of the API and a second set of functionality of the second version of the API;
mapping the first set of functionality to the second set of functionality to determine differences between the first set of functionality and the second set of functionality; and
determining the compatibility of the first version of the API with the second version of the API based on the differences.

### Claim 14 (depends on 13)

The method of claim 13, wherein the request includes a required set of functionality, wherein the required set of functionality is a subset of the second set of functionality.

### Claim 15 (depends on 14)

The method of claim 14, wherein determining the compatibility includes verifying inclusion of the required set of functionality in the first set of functionality.

### Claim 16 (depends on 13)

The method of claim 13, wherein each model is retrieved from a server storing a plurality of versions of the API and associated models within a database.

### Claim 17

A non-transitory machine readable medium storing code, which when executed by a processor is configured to:
receive a request to determine a compatibility of a first version of an application programming interface (API) with a second version of the API;
retrieve a model of the first version of the API and a model of the second version of the API;
parse each of the models to determine a first set of functionality of the first version of the API and a second set of functionality of the second version of the API;
map the first set of functionality to the second set of functionality to determine differences between the first set of functionality and the second set of functionality; and
determine the compatibility of the first version of the API with the second version of the API based on the differences.

### Claim 18 (depends on 17)

The non-transitory machine readable medium of claim 17, wherein the request includes a required set of functionality, wherein the required set of functionality is a subset of the second set of functionality.

### Claim 19 (depends on 18)

The non-transitory machine readable medium of claim 18, wherein determining the compatibility includes verifying inclusion of the required set of functionality in the first set of functionality.

### Claim 20 (depends on 17)

The non-transitory machine readable medium of claim 17, wherein each model is retrieved from a server storing a plurality of versions of the API and associated models within a database.
