Automated API Adapter Generation via Schema Matching

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The process of generating an API adapter is labor-intensive and time-consuming, particularly due to the manual design process, which hinders cost reduction and time efficiency when adding or modifying API adapters.

Innovation Solution

An API adapter generation device and method that includes a conversion rule calculation unit for schema matching and generating a model conversion rule, a call logic unit generation unit for rewriting API call logic source code, and an API adapter generation unit for automating the design and implementation of API adapters based on the rewritten logic.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Extent of automation

If manual design process is used for API adapter generation, then flexibility and control are maintained, but development time and labor costs increase significantly

Engineering Contradiction:
ImproveAPI adapter generation automationVSAvoidgeneration system complexity
Core Design Contradiction:
Extent of automationVSDevice complexity

Solution Approach 1:

The patent introduces a conversion rule calculation unit as an intermediary component that automatically generates conversion rules by performing schema matching between orchestrator data models and API specification data models. This intermediary automates the complex design process without requiring direct manual intervention, thereby increasing automation while managing system complexity through modular architecture

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The API adapter generation process is segmented into distinct automated components: schema matching module, conversion rule calculation unit, and API adapter generation unit. This segmentation allows each component to handle specific tasks independently, reducing overall system complexity while achieving high-level automation of the generation process

Inventive Principle:
Principle #1Segmentation

2Productivity

If manual design and implementation processes are used, then quality control is possible, but the period for adding or modifying API adapters is extended

Engineering Contradiction:
ImproveAPI adapter generation speedVSAvoidadapter modification time
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The system performs preliminary schema matching between orchestrator data models and API specification data models to pre-calculate conversion rules before actual API adapter generation is needed. This preliminary action enables rapid adapter generation and modification by having conversion logic prepared in advance, significantly reducing the time required for adding or modifying adapters

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent uses template-based generation where conversion rules and adapter structures are copied and adapted from existing patterns. The generation unit creates new API adapters by copying and customizing templates based on the calculated conversion rules, enabling rapid reproduction of adapters without manual design, thus improving productivity while maintaining consistency

Inventive Principle:
Principle #26Copying

3Ease of manufacture

If automated generation is implemented, then cost and time are reduced, but the complexity of the generation system increases

Engineering Contradiction:
Improveadapter generation easeVSAvoidgeneration system structure
Core Design Contradiction:
Ease of manufactureVSDevice complexity

Solution Approach 1:

The conversion rule calculation unit serves multiple functions: it performs schema matching, calculates conversion rules, and generates conversion logic that can be applied across different API adapters. This multi-functionality reduces the need for separate specialized components for each task, simplifying the overall system structure while maintaining automation and ease of adapter generation

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS20240118946A1API adapter generator, API adapter generation method, and API adapter generation program
Publication Date: 2024.04.11 NIPPON TELEGRAPH & TELEPHONE CORP
  • US20240118946A1 patent drawing
  • US20240118946A1 patent drawing
  • US20240118946A1 patent drawing

AI summary

An API adapter generation device include a conversion rule calculation unit (16) configured to acquire a data model of an orchestrator (210) and an API specification to be managed and perform schema matching on the basis of a data schema of the orchestrator and a data schema of the API specification to calculate a model conversion rule, a call logic unit generation unit (19) configured to rewrite a source code of an API call logic unit 232 describing an API adapter execution logic on the basis of the model conversion rule, and an API adapter generation unit (21) configured to generate an API adapter to be managed on the basis of the API call logic unit in which the source code is rewritten.