此应用程序的某些内容目前无法使用。
如果这种情况持续存在,请联系我们反馈与联系
1. (WO2019068024) BINDING, IN AN API REGISTRY, BACKEND SERVICES ENDPOINTS TO API FUNCTIONS
注:相关文本通过自动光符识别流程生成。凡涉及法律问题,请以 PDF 版本为准

WHAT IS CLAIMED IS:

1. A method of providing Application Programming Interface (API) functions for registered service endpoints in container environments, the method comprising:

receiving, at an API registry, an API definition comprising:

an endpoint of a first service that is encapsulated in a container that is deployed in a container environment; and

one or more API functions;

creating, by the API registry, a binding between the one or more API functions and the endpoint of the service;

receiving, by the API registry, a request from a second service to use the first service; and

providing, by the API registry, the one or more API functions to the second service.

2. The method of claim 1, further comprising:

generating a client library for the second service that includes the one or more

API functions.

3. The method of claim 2, wherein the client library comprises an object class with member functions that implement the API functions.

4. The method of claim 2, wherein the client library comprises a direct call to the endpoint of the first service.

5. The method of claim 2, wherein the client library comprises code that updates the endpoint of the first service at runtime when one of the one or more API functions is called by the second service.

6. The method of claim 2, wherein the client library reformats data received as one or more parameters of the one or more API functions into an HTTP call to the endpoint of the first service.

7. The method of claim 6, wherein the client library requests additional information from a third service to add to the HTTP call of the endpoint of the first service.

8. The method of claim 2, wherein the client library comprises code that retries unsuccessful calls to the first service.

9. The method of claim 2, wherein the client library comprises code that extracts a result value from a result set of the first service, and packages the result value as a return value for the one or more API functions.

10. A non-transitory, computer-readable medium comprising instructions that, when executed by one or more processors, causes the one or more processors to perform operations comprising:

receiving, at an API registry, an API definition comprising:

an endpoint of a first service that is encapsulated in a container that is deployed in a container environment; and

one or more API functions;

creating, by the API registry, a binding between the one or more API functions and the endpoint of the service;

receiving, by the API registry, a request from a second service to use the first service; and

providing, by the API registry, the one or more API functions to the second service.

11. The non-transitory, computer-readable medium of claim 10, wherein the endpoint of the first service comprises:

an IP address; and

a port number.

12. The non-transitory, computer-readable medium of claim 10, wherein the container environment comprises a plurality of services encapsulated in containers.

13. The non-transitory, computer-readable medium of claim 10, wherein the

API registry is deployed as a service encapsulated in a container in the container environment.

14. The non-transitory, computer-readable medium of claim 10, wherein the API registry is available to:

services in development in an Integrated Development Environment (IDE); and services already deployed in the container environment.

15. The non-transitory, computer-readable medium of claim 10, wherein the operations further comprise:

identifying, by the API registry, any available endpoints for containerized services that have been deployed to the container environment.

16. A system comprising:

one or more processors; and

one or more memory devices comprising instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:

receiving, at an API registry, an API definition comprising:

an endpoint of a first service that is encapsulated in a container that is deployed in a container environment; and

one or more API functions;

creating, by the API registry, a binding between the one or more API functions and the endpoint of the service;

receiving, by the API registry, a request from a second service to use the first service; and

providing, by the API registry, the one or more API functions to the second service.

17. The system of claim 16, wherein the operations further comprise:

causing a list of API functions for all services registered with the API registry to be displayed in a user interface.

18. The system of claim 17, wherein the request from the second service to use the first service is received by receiving a selection of one of the one or more API functions displayed in the user interface.

The system of claim 17, wherein the user interface comprises a command

The system of claim 17, wherein the user interface comprises a graphical