Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and system for generating application program interface API

A technology of application program interface and API interface, which is applied in the direction of inter-program communication, multi-program device, program control design, etc., can solve the problems of wasting development cost and heavy workload, and achieve simple and convenient operation, small development workload, The effect of saving development resources

Pending Publication Date: 2020-05-26
中思博安科技(北京)有限公司
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

A lot of work, and a lot of development costs will be wasted

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
  • Method and system for generating application program interface API
  • Method and system for generating application program interface API
  • Method and system for generating application program interface API

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] This embodiment provides a method for generating an application programming interface API. figure 1 is a flowchart of a method generated by an application programming interface API. Such as figure 1 As shown, the method is applied to the data provider, and the method includes the following steps:

[0045] S101. Obtain metadata of the database, and analyze the metadata to generate a data dictionary;

[0046] The metadata includes: database name, table name, table description information and table field information, wherein the table field information mainly includes: field name, field type and field length.

[0047] In this application, after connecting to the database through the program, scan the metadata of the database, analyze the metadata information, obtain information such as database name, table name, field name, field type, field length, etc., and then pass the above information through the visualized The pages are displayed to form a data dictionary.

[00...

Embodiment 2

[0065] This embodiment provides a system for generating an application programming interface API. Here, only a brief description of the structure and functions of the system generated by the API is given. For unfinished matters, please refer to the description of the corresponding part of the API generation method and query method above. Such as image 3 As shown, the system includes:

[0066] The data dictionary generation module 101 is used to obtain the metadata of the database, and generates a data dictionary to the metadata analysis;

[0067] The display module 102 is used to display the visualization page of the data dictionary to the data user;

[0068] The receiving module 103 is configured to receive the data exchange sharing application request sent by the data user, where the data exchange sharing application request includes the data exchange sharing information selected by the data user from the data dictionary;

[0069] The API generation module 104 is configu...

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 relates to an application program interface API generation method and system, and the method comprises the steps: obtaining metadata of a database, and carrying out analysis of the metadata to generate a data dictionary; displaying a visual page of the data dictionary to a data user, and receiving a data exchange sharing application request sent by the data user, with the data exchange sharing application request comprising data exchange sharing information selected by the data user from the data dictionary; generating an API according to the data exchange sharing information, wherein the interface parameter information of the API at least comprises identification information corresponding to the data exchange sharing information; and sending the interface parameter information of the API to a data user. Through the visual data dictionary, the data user can visually check the required information, and the data provider automatically generates the API interface according to the library, the table and the field selected by the data user, so that the development workload is small, development resources are saved, and the API generation process is simplified.

Description

technical field [0001] This article relates to the technical field of software development, in particular to a method and system for generating an application programming interface API. Background technique [0002] The most common way of data exchange and sharing is API (Application Programming Interface, application programming interface). First, the data provider starts an API interface service to wait for the request, the API interface data user initiates a request, calls the API interface service, and the API interface service returns data to the data user. [0003] In the prior art, the data provider needs to write a large amount of SQL (Structured Query Language, Structured Query Language), and then encapsulate and process the SQL, generate an API interface, and provide external services. The workload is heavy, and a lot of development costs will be wasted. Contents of the invention [0004] In order to overcome the problems existing in related technologies, this ...

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): G06F9/54
CPCG06F9/543
Inventor 王贺冬毕伟
Owner 中思博安科技(北京)有限公司