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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


