Automated API Generation via Resource Modeling
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing computing systems face challenges in dynamically managing and updating application programming interfaces (APIs) to reflect changes in computing resources and data hosted in service provider environments, often requiring user intervention and complicating client access to these resources.
Innovation Solution
A modeler in the service provider environment automatically generates and updates APIs, including an API interpreter at the client, to translate requests and responses, ensuring seamless access to dynamic computing resources and data without user input, using RESTful API calls and entity data models.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Extent of automation
If APIs are manually updated to reflect changes in computing resources and data, then client access remains stable, but user intervention is required and updates are time-consuming
Solution Approach 1:
The system automatically generates and updates APIs by monitoring changes in computing resources and data structures. The API generator detects resource changes and regenerates APIs without user intervention, allowing the system to serve itself in maintaining up-to-date access interfaces.
Solution Approach 2:
The modeler continuously models computing resources and data structures in advance, maintaining an up-to-date representation of the environment. This preliminary modeling enables the API generator to quickly regenerate APIs when changes occur, rather than waiting for manual updates.
2Adaptability or versatility
If APIs are automatically updated to reflect real-time changes in computing resources, then client access remains seamless, but the complexity of managing dynamic resources increases
Solution Approach 1:
The modeler acts as an intermediary between the dynamic computing resources and the API generation process. It maintains a simplified model of the complex resource environment, translating resource changes into API updates without exposing the full complexity to clients.
Solution Approach 2:
The system implements continuous monitoring of computing resources and data structures, with the modeler detecting changes and feeding this information back to the API generator. This feedback loop enables automatic adaptation of APIs to reflect current resource states.
3Ease of operation
If clients directly access computing resources without an API layer, then access speed increases, but clients are exposed to underlying changes and require frequent updates
Solution Approach 1:
The generated API serves as an intermediary layer between clients and computing resources. It provides a stable, consistent interface that shields clients from underlying resource changes while maintaining reliable access to dynamic data and services.
Solution Approach 2:
The system periodically regenerates APIs based on detected changes in computing resources. This periodic regeneration ensures the API remains synchronized with the underlying environment while providing clients with stable access during intervals between updates.
Data Source
AI summary
A technology is provided for generating a customized application program interface (API) in a service provider environment. A model is created of computing resources and data hosted by a service provider environment. An API is generated based on the model for the computing resources and the data, wherein the API is configured to enable the client to access the computing resources and data. Calls are received from the client at an API gateway hosting the API to access the data and the computing resources hosted by the service provider environment. A response to the calls is sent wherein the response is generated by the computing resources using the data accessible to the API in the service provider environment.


