API platform implementation method, device and equipment, and storage medium

An implementation method and API interface technology, which is applied in the field of equipment and storage media, API platform implementation methods, and devices, can solve the problems of annotation writing content and code duplication, complex API description rules, and the inability to form a unified enterprise-level API portal, etc., to achieve The effect of simplifying API definition and improving debugging efficiency

Pending Publication Date: 2021-04-06
HUMAN HORIZONS (SHANGHAI) CLOUD COMPUTING TECH CO LTD
View PDF9 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the development process of the enterprise-level API platform, because the API description rules are too complicated, the content of the comment writing and the code are repeated to some extent, and sometimes even exceed the code volume of the interface. Using the existing API document generation and debugging tools will reduce the API development and debugging. At the same time, because the existing API document generation and debugging tools are based on single microservices, it is impossible to form a unified enterprise-level API portal

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • API platform implementation method, device and equipment, and storage medium
  • API platform implementation method, device and equipment, and storage medium
  • API platform implementation method, device and equipment, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0044] see figure 1 , which is provided in the first embodiment of the present invention. The embodiment of the present invention provides an API platform implementation method, including:

[0045] S1: Generate a server agent according to the initial version of the API interface definition file and the preset service agent configuration file; wherein, the API interface definition file is generated according to the preset interface code definition, and the inte...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an API platform implementation method, device and equipment and a storage medium, and the method comprises the steps: generating a server agent according to an API definition file of an initial version and a preset service agent configuration file, wherein the API interface definition file is generated according to a preset interface code definition, and the interface code definition comprises a data type mapping table, metadata and an object definition file; generating a client SDK according to the API definition file of the initial version and a preset client interface definition file; and aggregating the plurality of microservices to generate an API platform according to the API definition file of the initial version, the client SDK and the server agent. The API interface definition file is generated through the predetermined interface code definition, and the file is called to generate the client SDK and the server agent, so that the micro-service is aggregated to form the API platform, the API definition, release and call processes can be effectively simplified, and the API development and debugging efficiency is improved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to an API platform realization method, device, equipment and storage medium. Background technique [0002] With the widespread use of microservice technology, API interfaces have shown explosive growth. Swagger's current mainstream API document generation and debugging tool is used to generate, describe, call and visualize RESTful-style Web services. Its goal is to enable the client and the file system to update Swagger at the same speed as the server. , parameters and models are tightly integrated into the server-side code, allowing the API to always stay in sync. However, in the development process of the enterprise-level API platform, because the API description rules are too complicated, the content of the comment writing and the code are repeated to some extent, and sometimes even exceed the code volume of the interface. Using the existing API document generation and...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/20G06F8/41G06F8/71G06F8/73
CPCG06F8/20G06F8/41G06F8/71G06F8/73
Inventor 丁磊何婉妮
Owner HUMAN HORIZONS (SHANGHAI) CLOUD COMPUTING TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products