API Specification Merging Tool for Unified Documentation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing API documentation tools fail to merge API specifications across multiple specifications, limiting the ability to create unified and consistent documentation for shared code elements, which hampers developer experience and increases support needs.

Innovation Solution

A processor-implemented method and system that identifies common resources and definitions across multiple API specifications, merging them into a single specification document using a specification merging tool that resolves references and validates the resulting document, thereby creating a unified API specification without requiring individual updates to each document.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If multiple separate API specification files are maintained for different APIs, then each API can have its own customized documentation, but the documentation for shared code elements becomes inconsistent and requires manual updates across multiple files

Engineering Contradiction:
ImproveAPI documentation customizationVSAvoidDocumentation consistency
Core Design Contradiction:
Adaptability or versatilityVSLoss of information

Solution Approach 1:

The system segments API specifications into separate, reusable definition files and resource files. Each shared code element (model, parameter, enum, etc.) is defined in its own separate specification file that can be independently maintained and reused across multiple APIs. This allows customization while maintaining consistency through references.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system introduces a specification merging tool as an intermediary that automatically combines multiple separate specification files into a unified documentation structure. This tool resolves references between files, merges shared definitions, and generates consistent documentation across multiple APIs without manual intervention, thus preventing information loss and maintaining documentation consistency.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Loss of information

If API specifications are merged into a single document, then documentation consistency is improved, but the complexity of managing and updating the specification increases

Engineering Contradiction:
ImproveDocumentation consistencyVSAvoidSpecification management complexity
Core Design Contradiction:
Loss of informationVSDevice complexity

Solution Approach 1:

Rather than creating one large monolithic specification file, the system segments the specification into multiple smaller, modular files that can be independently managed, edited, and reused. Each file contains specific definitions or resources that can be maintained separately, reducing the complexity of managing updates while still achieving unified documentation through the merging tool.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The separate specification files are designed to be universal and reusable across multiple APIs. A single definition file can be referenced by multiple different API specifications, reducing redundancy and simplifying management. When updates are needed, changes are made in one place and automatically propagate to all APIs that use that definition, reducing overall management complexity.

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

3Measurement precision

If references to shared code elements are resolved manually across multiple specification files, then documentation accuracy can be maintained, but the time and effort required increases significantly

Engineering Contradiction:
ImproveDocumentation accuracyVSAvoidDocumentation maintenance time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The specification merging tool acts as an intermediary that automatically resolves references between multiple specification files. It traverses the reference graph, matches definitions across files, and combines them into a unified documentation structure. This automated process maintains documentation accuracy by ensuring consistent reference resolution while dramatically reducing the time and effort required compared to manual resolution.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

Instead of manually copying and pasting shared code element definitions across multiple specification files, the system uses reference-based copying where definitions are defined once and referenced multiple times. The merging tool automatically copies and integrates these definitions into the unified documentation, ensuring accuracy while eliminating repetitive manual work.

Inventive Principle:
Principle #26Copying

4Ease of operation

If separate documentation is created for each API, then developer experience for specific APIs can be optimized, but support requirements increase due to inconsistency and complexity

Engineering Contradiction:
ImproveDeveloper experienceVSAvoidSupport requirements
Core Design Contradiction:
Ease of operationVSDevice complexity

Solution Approach 1:

The system segments documentation into reusable components that can be customized for specific APIs while maintaining consistency through shared definitions. This allows developers to access API-specific documentation optimized for their needs while underlying shared elements maintain consistency, reducing support requirements.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The specification merging tool serves as an intermediary that generates unified documentation from separate specification files. This automated process ensures consistency across API documentation, reducing the complexity that would otherwise require significant support intervention. Developers benefit from consistent, accurate documentation across all APIs while support teams face fewer issues related to documentation inconsistencies.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS10901729B2System and method for merging specification files for an application programming interface
Publication Date: 2021.01.26 VISA INTERNATIONAL SERVICE ASSOCIATION
  • US10901729B2 patent drawing
  • US10901729B2 patent drawing
  • US10901729B2 patent drawing

AI summary

Several API specification files that each include references to code elements that are defined within separate definitions and resources files may be merged together into a single specification for the new API. In this way, specifications for shared code elements that are common across the several specification files may be created without rewriting these specifications each time they are used in an API. A specification merging tool may look for a common reference in the API, match that reference to a definition or resource from the respective definition or resource document, and add that definition or resource to a merged specification file.