Patentable/Patents/US-10915377
US-10915377

Automatically building a web API definition from a microservice or web application

PublishedFebruary 9, 2021
Assigneenot available in USPTO data we have
Inventorsnot available in USPTO data we have
Technical Abstract

Methods and systems may provide for technology to determine dynamic path information and encoded type information associated with an application programming interface (API) and automatically generate a language-independent API definition based on the dynamic path information. In one example, the language-independent API definition is generated without reliance on source code annotations.

Patent Claims
18 claims

Legal claims defining the scope of protection, as filed with the USPTO.

1

1. A computing device comprising: one or more user interface devices to output a language-independent application programming interface (API) definition associated with an API; one or more processors to execute the API; and a computer readable storage medium having program instructions embodied therewith, the program instructions executable by the one or more processors to cause the computing device to: automatically determine dynamic path information associated with the API without reliance on source code annotations associated with the API, wherein the dynamic path information is separate from any API description, wherein the dynamic path information is separate from any log files, wherein the path information is determined by creating an instance of a data type by decoding an empty data input into the instance of the data type, wherein the instance includes one or more field names containing dummy data of the data type, and wherein the dynamic path information includes one or more route paths registered by the API at runtime; automatically determine encoded type information associated with the API without reliance on source code annotations associated with the API, and wherein the encoded type information is separate from any API description; and automatically generate the language-independent API definition based on the dynamic path information and the encoded type information.

2

2. The computing device of claim 1 , wherein the program instructions are executable to cause the computing device to: store the dynamic path information and a data type to a first closure that, when invoked, generates a list of route paths, wherein the storing includes storing a function together with an environment that associates each free variable of the function to a value or reference to which a name was previously bound when the first closure was created; and generate a second closure that, when invoked, encodes an instance of the data type into the encoded type information.

3

3. The computing device of claim 2 , wherein the program instructions are executable to cause the computing device to create the instance of the data type.

4

4. The computing device of claim 1 , wherein the dynamic path information is automatically added by a network router.

5

5. The computing device of claim 1 , wherein the encoded type information includes parameter type information and return type information.

6

6. The computing device of claim 1 , wherein the language-independent API definition is generated without reliance on source code annotations.

7

7. The computing device of claim 1 , wherein the API is to communicate with an application selected from a group consisting of a microservice and a web application.

8

8. A computer program product to generate application programming interface (API) definitions, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a computing device to cause the computing device to: automatically determine dynamic path information associated with an API without reliance on source code annotations associated with the API, and wherein the dynamic path information is separate from any API description, wherein the path information is determined by creating an instance of a data type by decoding an empty data input into the instance of the data type, wherein the instance includes one or more field names containing dummy data of the data type, wherein the dynamic path information includes one or more route paths registered by the API at runtime; automatically determine encoded type information associated with the API without reliance on source code annotations associated with the API, and wherein the encoded type information is separate from any API description; and automatically generate a language-independent API definition based on the dynamic path information and the encoded type information.

9

9. The computer program product of claim 8 , wherein the program instructions are executable to cause the computing device to: store the dynamic path information and a data type to a first closure that, when invoked, generates a list of route paths; and generate a second closure that, when invoked, encodes an instance of the data type into the encoded type information.

10

10. The computer program product of claim 9 , wherein the program instructions are executable to cause the computing device to create the instance of the data type.

11

11. The computer program product of claim 8 , wherein the encoded type information includes parameter type information and return type information.

12

12. The computer program product of claim 8 , wherein the language-independent API definition is generated without reliance on source code annotations.

13

13. The computer program product of claim 8 , wherein the API is to communicate with an application selected from a group consisting of a microservice and a web application.

14

14. A method comprising: automatically determining dynamic path information associated with an application programming interface (API) without reliance on source code annotations associated with the API, wherein the dynamic path information is separate from any API description, wherein the dynamic path information is separate from any log files, wherein the path information is determined by creating an instance of a data type by decoding an empty data input into the instance of the data type, wherein the instance includes one or more field names containing dummy data of the data type, and wherein the dynamic path information includes one or more route paths registered by the API at runtime; automatically determining encoded type information associated with the API without reliance on source code annotations associated with the API, and wherein the encoded type information is separate from any API description; and automatically generating a language-independent API definition based on the dynamic path information and the encoded type information.

15

15. The method of claim 14 , wherein determining the encoded type information includes: storing the dynamic path information and a data type to a first closure that, when invoked, generates a list of route paths; and generating a second closure that, when invoked, encodes an instance of the data type into the encoded type information.

16

16. The method of claim 15 , further including creating the instance of the data type.

17

17. The method of claim 14 , wherein the encoded type information includes parameter type information and return type information.

18

18. The method of claim 14 , wherein the dynamic path information includes one or more verbs registered by the API at runtime, wherein the dynamic path information includes at least one body registered by the API at runtime.

Classification Codes (CPC)

Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.

Patent Metadata

Filing Date

May 18, 2018

Publication Date

February 9, 2021

Want to explore more patents?

Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.

Citation & reuse

Analysis on this page is generated by Patentable — an AI-powered patent intelligence platform. AI-generated summaries, explanations, and analysis may be reused with attribution and a visible link back to the canonical URL below. Patent abstracts and claims are USPTO public domain.

Cite as: Patentable. “Automatically building a web API definition from a microservice or web application” (US-10915377). https://patentable.app/patents/US-10915377

© 2026 Patentable. All rights reserved.

Patentable is a research and drafting-assistant tool, not a law firm, and does not provide legal advice. Documents we generate are drafts for review by a licensed patent attorney.

Automatically building a web API definition from a microservice or web application — Michael J. Tunnicliffe | Patentable