# US 2020/0351332 A1 · Auto-documentation for application program interfaces based on network requests and responses

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

- Number: US 2020/0351332 A1
- Document ID: US20200351332A1
- Status: Published application
- Kind: A1
- Application number: 16/933,287
- Filed: 2020-07-20
- Published: 2020-11-05
- Earliest claimed: 2017-07-28
- Assignees: Kong Inc.
- Applicants: Kong Inc.
- Inventors: Marco Palladino; Augusto Marietti
- Web page: https://patentgrep.com/patent/US20200351332A1

## CPC

- G06F 8/73: Program documentation
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L 67/1004: Server selection for load balancing
- H04L 67/01: Protocols
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/563: Data redirection of data network streams
- H04L 67/568: Storing data temporarily at an intermediate stage, e.g. caching
- 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

Disclosed embodiments are directed at systems, methods, and architecture for providing auto-documentation to APIs. The auto documentation plugin is architecturally placed between an API and a client thereof and parses API requests and responses in order to generate auto-documentation. In some embodiments, the auto-documentation plugin is used to update preexisting documentation after updates. In some embodiments, the auto-documentation plugin accesses an on-line documentation repository. In some embodiments, the auto-documentation plugin makes use of a machine learning model to determine how and which portions of an existing documentation file to update.

## Claims

### Claim 1

A system for securing, managing, and extending functionalities of Application Programming Interfaces (APIs) in a microservices architecture, the system comprising:
a plurality of APIs organized into a microservices application architecture;
a processor operated control plane communicatively coupled to the plurality of APIs via data plane proxies, wherein the control plane is configured to:
receive an incoming proxied request from a first API of the plurality of APIs directed to a second API of the plurality of APIs, the proxied request relayed to the control plane via a first data plane proxy associated with the first API;
receive a proxied response from the second API, the proxied response relayed to the control plane via a second data plane proxy associated with the second API;
parse the proxied request and the proxied response and extract current data;
in response to a transaction that includes the request and the response, execute an auto-documentation plugin, wherein the auto-documentation plugin is configured to generate documentation based on the current data; and
a data store configured to store the control plane and the documentation.

### Claim 2 (depends on 1)

The system of claim 1, further comprising:
a first gateway node and a second gateway node, the first gateway node and second gateway node configured as external end-points of the microservices application, wherein the one or more gateway nodes are further configured to:
save, by the first gateway node, software code in the data store, wherein the software code is associated with a plugin included in a plurality of plugins;
retrieving, by the second gateway node, the software code from the data store; and
installing, by the second gateway node, the plugin at the second gateway node, using the retrieved software code associated with the plugin.

### Claim 3 (depends on 1)

The system of claim 1, further comprising:
a memory architecturally separate from the plurality of APIs, the memory including a program code library configured to execute functionalities common to execution of the plurality of APIs on the node in communication with the memory.

### Claim 4 (depends on 2)

The system of claim 2, further comprising:
an administration API for configuring and installing the plurality of plugins, wherein the administration API is used for provisioning the plurality of APIs.

### Claim 5 (depends on 1)

The system of claim 1, wherein the request is parsed subsequent to the receiving the response from the API.

### Claim 6 (depends on 1)

The system of claim 1, wherein the request is parsed independently from delivery to the second API.

### Claim 7 (depends on 1)

The system of claim 1, wherein the auto-documentation is in the form of a Swagger file, a RAML file, or an API Blueprint file.

### Claim 8 (depends on 1)

The system of claim 1, wherein the auto-documentation includes one or more endpoints, one or more parameters, one or more methods of the transaction.

### Claim 9 (depends on 1)

The system of claim 1, wherein the request and the response is associated with an endpoint, wherein executing the auto-documentation plugin for the transaction includes:
retrieving previously generated documentation for the endpoint;
comparing the previously generated auto-documentation with the current data to determine a difference; and
upon determining a difference, generating documentation for the transaction.

### Claim 10 (depends on 9)

The system of claim 9, wherein the previously generated documentation associated with the endpoint and includes at least one of: a body, one or more headers, or one or more parameters.

### Claim 11 (depends on 9)

The system of claim 9, wherein executing the auto-documentation plugin for the transaction includes:
upon determining a difference does not exist, entering a state associated with not generating documentation for the transaction.

### Claim 12 (depends on 9)

The system of claim 9, wherein executing the auto-documentation plugin for the transaction includes:
upon determining the difference, electronically generating a notification for alerting the difference to a user.

### Claim 13

A system comprising:
a processor operated node architecturally positioned to receive proxied communications between a plurality of application program interfaces (APIs) that operate a microservices application, wherein the node parses API requests and responses in between the plurality of APIs and extracts current data and executes an auto-documentation program function, wherein the auto-documentation program function is configured to generate auto-documentation in response to a transaction that includes the request and the response, the auto-documentation based on the transaction; and
a memory architecturally separate from the microservices application, the memory including a program code library configured to execute functionalities common to execution of the plurality of APIs on the node in communication with the memory.

### Claim 14 (depends on 13)

The system of claim 13, wherein the node further comprises:
a gateway that receives client requests, executes the program code library, and performs load balancing; and
a data store that stores the program code library.

### Claim 15 (depends on 14)

The system of claim 14, the node further comprising:
a gateway cache that stores portions or all of the functionalities common to execution of the plurality of APIs and improves execution time over accessing the auto-documentation program function via the data store.

### Claim 16 (depends on 13)

The system of claim 13, wherein the functionalities common to execution of the plurality of APIs comprise any of:
authentication;
logging;
caching;
transformations;
rate-limiting; or
any combination thereof.

### Claim 17 (depends on 13)

The system of claim 13, wherein the functionalities common to execution of the plurality of APIs includes a first program function and a second program function.

### Claim 18 (depends on 17)

The system of claim 17, the node further comprising:
an administration API programmed to configure and install the first and second program functions, and further programmed to provision the API.

### Claim 19 (depends on 17)

The system of claim 17, wherein the plurality of APIs cannot perform the first or second program functions without code from the program code library on a proxy server.

### Claim 20

A method for securing, managing, and extending functionalities of a plurality of Application Programming Interfaces (APIs) in a microservices architecture, the method comprising:
receiving, by a control plane, an incoming proxied request from a first API of the plurality of APIs directed to a second API of the plurality of APIs, the proxied request relayed to the control plane via a first data plane proxy associated with the first API;
receiving, by the control plane, a proxied response from the second API, the proxied response relayed to the control plane via a second data plane proxy associated with the second API;
parsing the proxied request and the proxied response and extracting current data; and
in response to a transaction that includes the request and the response, executing an auto-documentation plugin, wherein the auto-documentation plugin is configured to generate documentation based on the current data between the first API and the second API.

### Claim 21 (depends on 20)

The method of claim 20, further comprising:
identifying, by the control plane, a set of APIs of the plurality of APIs that belong to a service group.

### Claim 22 (depends on 21)

The method of claim 21, further comprising:
parsing requests and responses between the set of APIs belonging to the service group;
identify similar or matching objects across the requests and responses of multiple APIs;
in response to said identification, executing the auto-documentation plugin, wherein the auto-documentation plugin is configured to generate service group level documentation based on requests and responses within the service group.

### Claim 23 (depends on 21)

The method of claim 21, wherein the set of APIs that belong to the service group are along a same execution path.
