Automatic API Input Parameter Construction via Metadata Mapping
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In service allocation of APIs, users must manually design or adjust parameters and structures to meet data format and content requirements, necessitating hard coding to assemble correct input parameters for API calls.
Innovation Solution
A data construction system and method that automatically constructs input parameters for APIs by determining metadata and mapping rules from a data source, using a processor and memory to execute a data automatic construction component that generates the necessary input parameters based on call request instructions.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Manufacturing precision
If manual design and adjustment of parameters is used to meet data format and content requirements, then the input parameter can be correctly constructed, but the operation process becomes complex and time-consuming
Solution Approach 1:
The system performs preliminary actions by automatically determining the API to be called and the corresponding input metadata before parameter construction. The processor executes a data automatic construction component that pre-processes the call request instruction, determines the required parameters and their formats, and prepares the input parameter structure in advance, eliminating the need for manual design and adjustment during the actual API call process.
2Reliability
If hard coding is used to assemble input parameters, then the data format and content requirements are met, but the productivity decreases
Solution Approach 1:
The system implements self-service by automatically constructing input parameters without requiring manual hard coding. The processor executes the data automatic construction component that autonomously determines the API to be called, identifies the corresponding input metadata, and assembles the input parameter according to the determined format and content requirements, enabling the system to serve itself without human intervention in the parameter assembly process.
3Manufacturing precision
If manual design and adjustment of parameters is used, then the correct input parameter can be obtained, but the time consumption increases
Solution Approach 1:
The system replaces the mechanical manual process of parameter design and adjustment with an automated computational system. The processor executes the data automatic construction component that algorithmically determines the API to be called, identifies input metadata, and constructs parameters automatically, substituting human manual operations with automated information processing that achieves the same accuracy much faster.
Data Source
AI summary
A data construction system and a data construction method are provided. The data construction system includes a memory and a processor. The memory stores a data automatic construction component. The processor executes the data automatic construction component to obtain a call request instruction and a data source from a computer device. The data automatic construction component determines input metadata and an API to be called in a business system according to the call request instruction and the data source, and the data automatic construction component reads a server according to the API and the input metadata to obtain a mapping rule and a metadata set. The data automatic construction component uses the data source to construct an input parameter according to the mapping rule and the metadata set, and outputs the input parameter to the API, so that the API responds corresponding business data to the computer device.


