CN112506490B - Interface generation method, device, electronic device and storage medium - Google Patents
Interface generation method, device, electronic device and storage medium Download PDFInfo
- Publication number
- CN112506490B CN112506490B CN202011455254.4A CN202011455254A CN112506490B CN 112506490 B CN112506490 B CN 112506490B CN 202011455254 A CN202011455254 A CN 202011455254A CN 112506490 B CN112506490 B CN 112506490B
- Authority
- CN
- China
- Prior art keywords
- target
- data
- carrier
- api
- plug
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本发明实施例公开了一种接口生成方法、装置、电子设备及存储介质。所述接口生成方法,包括:确定目标数据载体匹配的目标数据获取插件;根据目标数据获取插件获取目标载体数据;根据目标载体数据生成目标API。本发明实施例的技术方案能够降低数据开放的复杂度,并提高接口的开发效率。
The embodiment of the present invention discloses an interface generation method, device, electronic device and storage medium. The interface generation method comprises: determining a target data acquisition plug-in matching a target data carrier; acquiring target carrier data according to the target data acquisition plug-in; and generating a target API according to the target carrier data. The technical solution of the embodiment of the present invention can reduce the complexity of data opening and improve the efficiency of interface development.
Description
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to an interface generation method, an interface generation device, electronic equipment and a storage medium.
Background
With the development of internet technology, a large amount of data is generated, and the generated data are generally different in data carriers, so that the data on different data carriers are distributed into interfaces to become the technical key points in the technical field of data processing.
In the prior art, data stored in different data carriers can be released into an API (Application Programming Interface, application program interface) in a coding mode, but the method is time-consuming and labor-consuming, and meanwhile, the management of data access rights of a used object can be involved, so that the complexity of opening a data set is greatly increased. Or the ETL (Extract Transform Load, data warehouse technology) tool is utilized to unify the data and then output the API, the method is a complex and time-consuming project, and real-time release of incremental data is difficult.
Disclosure of Invention
The embodiment of the invention provides an interface generation method, an interface generation device, electronic equipment and a storage medium, which are used for reducing the complexity of data opening and improving the development efficiency of interfaces.
In a first aspect, an embodiment of the present invention provides an interface generating method, including:
Determining a target data acquisition plug-in matched with a target data carrier;
Acquiring target carrier data according to the target data acquisition plug-in;
And generating a target API according to the target carrier data.
In a second aspect, an embodiment of the present invention further provides an interface generating device, including:
The plug-in determining module is used for determining a target data acquisition plug-in matched with the target data carrier;
the target carrier data acquisition module is used for acquiring target carrier data according to the target data acquisition plug-in;
And the target API generation module is used for generating a target API according to the target carrier data.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
a storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the interface generation method provided by any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium having stored thereon a computer program, which when executed by a processor implements the interface generation method provided by any embodiment of the present invention.
According to the technical scheme, the target data acquisition plug-in matched with the target data carrier is determined, the target data acquisition plug-in and the position information of the target carrier data are further utilized to acquire the target carrier data, and finally the target carrier data are processed and converted to generate the target API interface, so that the problems of high data opening complexity and low interface generation efficiency are solved, the effect of reducing the data opening complexity and improving the development efficiency of the interface is achieved.
Drawings
Fig. 1 is a flowchart of an interface generating method according to a first embodiment of the present invention;
Fig. 2 is a flowchart of an interface generating method according to a second embodiment of the present invention;
Fig. 3 is a schematic diagram of an interface generating device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof.
It should be further noted that, for convenience of description, only some, but not all of the matters related to the present invention are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example 1
Fig. 1 is a flowchart of an interface generation method according to an embodiment of the present invention, where the method may be applied to the case of efficiently developing interfaces for data of different data carriers, and the method may be performed by an interface generation device, which may be implemented by software and/or hardware, and may be generally integrated in an electronic device. Accordingly, as shown in fig. 1, the method includes the following operations:
S110, determining a target data acquisition plug-in matched with the target data carrier.
The data carrier may be a medium storing target data, and the target data carrier may be a data carrier requiring an interface to be generated. The target data acquisition plug-in may be a plug-in having a target data acquisition function. The target data may be data on a target data carrier.
Specifically, the target data acquisition plug-in adapted to the target data carrier can be queried according to the target data carrier, i.e. the target data acquisition plug-in matched with the target data carrier can be determined according to the target data carrier.
In an alternative embodiment of the present invention, before determining the target data acquisition plugins matched with the target data carrier, the method may further include receiving an operation notification request of each data acquisition plugin, and performing isolated operation on each data acquisition plugin through a plugin micro-service, where one data acquisition plugin corresponds to one plugin micro-service.
The data acquisition plug-in may be a plug-in having a data acquisition function. The run notification request may be a notification request sent when the data acquisition plug-in is started, characterizing that the data acquisition plug-in may or is running. The plug-in micro service may be a micro service running a plug-in, and illustratively, the plug-in micro service may be a container running a plug-in, etc.
It should be noted that each data carrier may correspond to one data acquisition card, and even though the data carriers are of the same type, the versions are different, and it is also necessary to construct different data acquisition cards respectively. Therefore, the data acquisition plug-ins adapted to the data carriers can be respectively constructed according to the different data carriers, and when each data acquisition plug-in is started, the corresponding operation notification request can be sent. Because one data acquisition plug-in corresponds to one plug-in micro service and the plug-in micro services are isolated from each other, the plug-in micro services can realize the isolated operation of the data acquisition plug-in.
In an embodiment of the invention, since there is a difference in operation of different types of data carriers and a difference in operation of different versions of the same type of data carrier, it is necessary to construct a data acquisition plug-in that matches the different data carriers in order to better adapt them. Furthermore, plug-in micro service isolation operations may be such that operations are not disturbed.
S120, acquiring target carrier data according to the target data acquisition plug-in.
Wherein the target carrier data may be all or part of the data present on the target data carrier.
Specifically, since the target data acquisition plug-in has a function of acquiring target data, the target data acquisition plug-in can acquire all or part of data on the target data carrier matched with the target data acquisition plug-in, namely, target carrier data.
In the embodiment of the invention, because the carrier characteristics of different target data carriers are different, when the target data of different target data carriers are acquired, the started data acquisition plug-in can be determined according to the operation notification request, the target data carrier where the target data of the target carrier are located is further queried, and if the target data acquisition plug-in matched with the target data carrier is started, the target data acquisition plug-in can acquire the target data according to the position information of the target data of the target carrier. Wherein the location information may characterize a specific location of the target carrier data stored in the target data carrier.
In an alternative embodiment of the invention the destination data carrier may be a database and/or a text file, the destination carrier data comprising at least one number of destination APIs.
In particular, the data acquisition plug-in may acquire data on the database and/or text file, i.e. the target carrier data. The target carrier data can generate different target APIs according to different functional requirements, namely, different data access rights correspond to different target APIs. The destination carrier data may thus comprise at least one destination API. The database may include a relational database and a non-relational database, among others. The relational database may include Mysql database, oracle database, DB2 database, and the like. The non-relational databases may include an HBase database, a Hive database, a Phoenix database, and the like. The embodiment of the invention does not limit the specific database types included in the relational database and the non-relational database.
In an alternative embodiment of the present invention, before the target carrier data is acquired according to the target data acquisition plug-in, the method may further include configuring a target data set address of the target carrier data, and sending the target data set address to the target data acquisition plug-in, where the target data acquisition plug-in is configured to establish a target logical connection with the target carrier data according to the target data set address, so as to acquire the target carrier data through the target logical connection.
The target data set address may be an address of data to be acquired by the target data acquisition plug-in, and is used for reading target carrier data on the target data carrier. The target logical connection may be a communication connection of the target data acquisition plug-in with the target carrier data.
Specifically, before acquiring the target carrier data, the target data set address of the target carrier data may be configured first, the target data set address is further sent to the target data acquisition plug-in, the target data acquisition plug-in establishes a communication connection with the target carrier data, that is, a target logical connection, according to the target data set address, and finally the target data acquisition plug-in may acquire the target carrier data according to the target logical connection.
In an alternative embodiment of the invention, the target data obtaining plug-in may be further configured to obtain a target data variable of the target carrier data in case the target data set address of the target carrier data is empty, so as to obtain the target carrier data through the target data variable.
Wherein the target data variable may be a variable that queries the target carrier data field.
In the embodiment of the invention, if the target data set address is empty, the target data acquisition plug-in can directly read the target carrier data according to the target data variable, namely, the target carrier data can be directly obtained according to the variable of the target carrier data field to be queried. The target data acquisition plug-in may acquire the target carrier data based on the target data set address if the target data set address is not null.
S130, generating a target API according to the target carrier data.
The target API may be an interface with a certain service function, and may be used for other modules or devices to call the stored data to the target data carrier.
Specifically, the target carrier data is subjected to data processing according to the service function requirements to obtain a data processing result, and the data processing result is further converted into a target API.
The volume of data generated by each enterprise or institution has increased since the advent of the internet era. These data may be placed on different data carriers. Therefore, how to rapidly publish the data set in the data carrier as an API for users to use, so as to effectively play the value of the data set, and the problem to be solved is urgent.
In the embodiment of the invention, the data access limitation problem caused by different data carrier types can be effectively reduced by adapting different data carrier types through different data acquisition plug-ins, and the data acquisition plug-ins can also adapt to the data carriers of the same type and different versions, so that the problem of the adaptation conflict of the data carriers of the same type and different versions is solved. Meanwhile, the data on the data carrier is acquired through the data acquisition plug-in, so that an API is generated according to the acquired data, special processing of the data by adopting codes or special tools is not needed, the complexity of data opening on the data carrier can be reduced, and meanwhile, the efficiency of generating the API according to the data of the data carrier is improved.
According to the technical scheme, the target data acquisition plug-in matched with the target data carrier is determined, the target data acquisition plug-in and the position information of the target carrier data are further utilized to acquire the target carrier data, and finally the target carrier data are processed and converted to generate the target API interface, so that the problems of high data opening complexity and low interface generation efficiency are solved, the effect of reducing the data opening complexity and improving the development efficiency of the interface is achieved.
Example two
Fig. 2 is a flowchart of an interface generating method according to a second embodiment of the present invention, which is implemented based on the foregoing embodiment, and in this embodiment, a specific optional implementation manner of generating a target API according to data structure information is provided, and accordingly, as shown in fig. 2, the method includes the following operations:
s210, determining a target data acquisition plug-in matched with the target data carrier.
S220, acquiring target carrier data according to the target data acquisition plug-in.
S230, displaying data structure information of the target carrier data on a visualization API generation interface.
The visual API generating interface may be a visual interface capable of generating an API. The data structure information may be a data structure between data elements in a data set.
Specifically, after the target data obtaining plug-in obtains the target carrier data, the visualization API generating interface may display the data structure information of the target carrier data, so as to facilitate processing of the data structure information.
In the embodiment of the invention, after the data structure information of the target carrier data is displayed on the visual API generation interface, the displayed data structure information can be dragged by using the visual tool according to the service requirement on the visual API generation interface.
S240, responding to a data processing instruction aiming at the target data structure information in the visualization API generation interface, and carrying out API data processing on the target data structure information.
The data processing instruction may be an instruction for performing data processing on the target data structure information. The data processing instruction may be, for example, an instruction for processing data through combination, screening, statistics, or aggregation, and the specific instruction function of the data processing instruction is not limited in the embodiment of the present invention. The target data structure information may be data required to generate the target API. The API data processing may be data processing operations corresponding to data processing instructions, such as combining, filtering, counting, or aggregating target data structure information.
In the embodiment of the invention, the data processing instruction can be generated according to the service function to be realized by the target API, the information related to the service function, namely the target data structure information, can be selected from the data structure information displayed in the visual API generation interface, and the data processing instruction is further responded, namely the API data processing is performed on the target data structure information.
S250, generating a target API according to the API data processing result.
The API data processing result may be a result of performing data processing on the target data structure information.
In the embodiment of the invention, the data structure information is subjected to API data processing according to the data processing instruction to obtain an API data processing result, and the target API is generated according to the API data processing result and the interface generation technology. The target API may be available for external applications and calls by the user.
In an alternative embodiment of the present invention, after generating the target API according to the target carrier data, determining the target monitoring data carrier, acquiring monitoring data structure information of the target monitoring data carrier, and monitoring the monitoring data structure information may be further included.
The object monitoring data carrier may be an object data carrier to be monitored, and the object monitoring data carrier may include part or all of the object data carrier, for example, the object monitoring data carrier may be an object data carrier whose data structure information changes. The monitoring data structure information may be data structure information of data on the target monitoring data carrier.
In the embodiment of the invention, after the target API is generated according to the target carrier data, the data carrier to be monitored is determined as the target monitoring data carrier according to the service function requirement, so that the data on the target monitoring data carrier is analyzed to obtain the monitoring data structure information, and the monitoring data structure information is further monitored. In addition, when the monitoring data structure information changes, the target carrier data acquired by the target data acquisition plug-in also changes correspondingly, and whether the monitoring data structure information changes can be used as an early warning signal.
For example, assuming that the monitoring data structure information is not tamperable, when the monitoring data structure information changes, authority limitation may be performed on the target monitoring data carrier corresponding to the changed monitoring data structure information. The external application or the user cannot access the data of the generated target API interface, and then the operation and maintenance personnel can maintain the data on the target monitoring data carrier.
Specifically, the data processing can be performed on the dragged data structure in the visualized API generation interface according to the data processing instruction. For example, assuming that the service requirement is to count the total number of rows of a certain table, firstly dragging the data structure of the table from the data structure information displayed by the visual API generation interface, further counting the number of rows according to the dragged data structure of the table to obtain the total number of rows, and finally generating the total number of rows into the API with the function of counting the total number of rows of the table through the interface generation technology. If the total number of the table is changed, when the user or an external application performs the API call, the target carrier data on the target data carrier which is in target logical connection with the target data acquisition plug-in is changed, that is, the table data structure dragged out from the visualized API generating interface is changed correspondingly, which results in the change of the statistics of the total number of the table, so that the generated API can output the total number of the table in real time.
In the embodiment of the invention, the visual API generation interface can display the data structure information of the target carrier data, and the visual API generation interface can drag the data structure information to obtain the target data structure information, further carries out API data processing on the target data structure information according to the target data structure information and the data processing instruction, finally generates the target API through the target API data processing result, solves the problem that the API cannot convert and output the data with the data structure information change in real time in the prior art, realizes the dynamic adjustment of the API output according to the data structure information change, carries out monitoring and early warning on the API with the data structure information change, and improves the effective management of the data resource. In addition, the visual API generation interface can well promote the API development experience, and meets the requirement of efficient API development.
It should be noted that any permutation and combination of the technical features in the above embodiments also belong to the protection scope of the present invention.
Example III
Fig. 3 is a schematic diagram of an interface generating device according to a third embodiment of the present invention, as shown in fig. 3, where the device includes a plug-in determining module 310, a target carrier data obtaining module 320, and a target API generating module 330, where:
A plugin determination module 310 for determining a target data acquisition plugin for which the target data carrier matches;
a target carrier data acquisition module 320, configured to acquire target carrier data according to the target data acquisition plug-in;
And the target API generating module 330 is configured to generate a target API according to the target carrier data.
Optionally, the interface generating device further comprises an isolation operation module, wherein the isolation operation module is used for receiving operation notification requests of all the data acquisition plug-ins, and performing isolation operation on all the data acquisition plug-ins through plug-in micro services, wherein one data acquisition plug-in corresponds to one plug-in micro service.
Optionally, the interface generating device further comprises a target data set address configuration module, a target data acquisition plug-in and a target data processing module, wherein the target data set address configuration module is used for configuring a target data set address of the target carrier data, and sending the target data set address to the target data acquisition plug-in, and the target data acquisition plug-in is used for establishing target logic connection with the target carrier data according to the target data set address so as to acquire the target carrier data through the target logic connection.
Optionally, in the case that the target data set address of the target carrier data is empty, the target data obtaining plug-in is further configured to obtain a target data variable of the target carrier data, so as to obtain the target carrier data through the target data variable.
Optionally, the target API generating module 330 is specifically configured to display data structure information of the target carrier data on a visual API generating interface, respond to a data processing instruction for the target data structure information in the visual API generating interface, perform API data processing on the target data structure information, and generate the target API according to an API data processing result.
Optionally, the interface generating device further comprises a monitoring module, wherein the monitoring module is used for determining a target monitoring data carrier, acquiring monitoring data structure information of the target monitoring data carrier, and monitoring the monitoring data structure information.
Optionally, the target data carrier is a database and/or a text file, and the number of target APIs included in the target carrier data is at least one.
According to the technical scheme, the target data acquisition plug-in matched with the target data carrier is determined, the target data acquisition plug-in and the position information of the target carrier data are further utilized to acquire the target carrier data, and finally the target carrier data are processed and converted to generate the target API interface, so that the problems of high data opening complexity and low interface generation efficiency are solved, the effect of reducing the data opening complexity and improving the development efficiency of the interface is achieved.
The interface generating device can execute the interface generating method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method. Technical details which are not described in detail in this embodiment can be referred to the interface generation method provided in any embodiment of the present invention.
Since the interface generating apparatus described above is an apparatus capable of executing the interface generating method in the embodiment of the present application, based on the interface generating method described in the embodiment of the present application, a person skilled in the art can understand the specific implementation of the interface generating apparatus of the embodiment and various modifications thereof, so how the interface generating apparatus implements the interface generating method in the embodiment of the present application will not be described in detail herein. The device adopted by the person skilled in the art to implement the interface generating method in the embodiment of the present application is within the scope of protection to be sought.
Example IV
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. Fig. 4 illustrates a block diagram of an electronic device 412 suitable for use in implementing embodiments of the invention. The electronic device 412 shown in fig. 4 is only an example and should not be construed as limiting the functionality and scope of use of embodiments of the invention. The electronic device 412 may be, for example, an electronic device or a server device, etc.
As shown in FIG. 4, the electronic device 412 is in the form of a general purpose computing device. Components of electronic device 412 may include, but are not limited to, one or more processors 416, a storage 428, and a bus 418 that connects the various system components, including storage 428 and processor 416.
Bus 418 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry standard architecture (Industry Standard Architecture, ISA) bus, micro channel architecture (Micro Channel Architecture, MCA) bus, enhanced ISA bus, video electronics standards association (Video Electronics Standards Association, VESA) local bus, and peripheral component interconnect (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus.
Electronic device 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
The storage 428 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory, RAM) 430 and/or cache memory 432. The electronic device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a disk drive for reading from and writing to a removable nonvolatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from and writing to a removable nonvolatile optical disk (e.g., a Compact Disc-Read Only Memory (CD-ROM), digital versatile Disc (Digital Video Disc-Read Only Memory, DVD-ROM), or other optical media) may be provided. In such cases, each drive may be coupled to bus 418 via one or more data medium interfaces. Storage 428 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
Programs 436 having a set (at least one) of program modules 426 may be stored, for example, in storage 428, such program modules 426 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 426 typically carry out the functions and/or methods of the embodiments described herein.
The electronic device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, camera, display 424, etc.), one or more devices that enable a user to interact with the electronic device 412, and/or any device (e.g., network card, modem, etc.) that enables the electronic device 412 to communicate with one or more other computing devices. Such communication may occur through an Input/Output (I/O) interface 422. Also, electronic device 412 may communicate with one or more networks such as a local area network (Local Area Network, LAN), a wide area network Wide Area Network, a WAN, and/or a public network such as the internet via network adapter 420. As shown, network adapter 420 communicates with other modules of electronic device 412 over bus 418. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with the electronic device 412, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, disk array (Redundant Arrays of INDEPENDENT DISKS, RAID) systems, tape drives, and data backup storage systems, among others.
The processor 416 executes various functional applications and data processing by running a program stored in the storage 428, for example, to implement the interface generation method provided by the above embodiment of the present invention, that is, to determine a target data acquisition plug-in to which a target data carrier matches, to acquire target carrier data according to the target data acquisition plug-in, and to generate a target API according to the target carrier data.
According to the technical scheme, the target data acquisition plug-in matched with the target data carrier is determined, the target data acquisition plug-in and the position information of the target carrier data are further utilized to acquire the target carrier data, and finally the target carrier data are processed and converted to generate the target API interface, so that the problems of high data opening complexity and low interface generation efficiency are solved, the effect of reducing the data opening complexity and improving the development efficiency of the interface is achieved.
Example five
The fifth embodiment of the present invention further provides a computer storage medium storing a computer program, where the computer program when executed by a computer processor is configured to perform the method for generating an interface according to any one of the foregoing embodiments of the present invention, where the target data acquisition plug-in determines that a target data carrier matches, acquire target carrier data according to the target data acquisition plug-in, and generate a target API according to the target carrier data.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an erasable programmable Read-Only Memory ((Erasable Programmable Read Only Memory, EPROM) or flash Memory), an optical fiber, a portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (8)
1. An interface generation method, comprising:
Constructing a data acquisition plug-in corresponding to each data carrier in the data carriers;
receiving operation notification requests of the data acquisition plug-ins;
performing isolation operation on each data acquisition plug-in through plug-in micro service;
The plug-in micro service is a container for running the data acquisition plug-ins, and one data acquisition plug-in corresponds to one plug-in micro service;
Determining a target data acquisition plug-in matched with a target data carrier;
Configuring a target data set address of target carrier data;
transmitting the target data set address to the target data acquisition plug-in;
the target data acquisition plug-in is used for establishing target logic connection with the target carrier data according to the target data set address so as to acquire the target carrier data through the target logic connection;
Acquiring target carrier data according to the target data acquisition plug-in;
and generating a target application program interface API according to the target carrier data.
2. The method according to claim 1, wherein the target data acquisition plug-in is further configured to acquire a target data variable of the target carrier data in case the target data set address of the target carrier data is empty, to acquire the target carrier data through the target data variable.
3. The method of claim 1, wherein generating a target API from the target carrier data comprises:
displaying the data structure information of the target carrier data on a visual API generation interface;
Responding to a data processing instruction aiming at target data structure information in the visual API generation interface, and carrying out API data processing on the target data structure information;
and generating the target API according to the API data processing result.
4. The method of claim 1, further comprising, after said generating a target API from said target carrier data:
Determining a target monitoring data carrier;
acquiring monitoring data structure information of the target monitoring data carrier;
And monitoring the monitoring data structure information.
5. The method according to any of claims 1-4, wherein the target data carrier is a database and/or a text file, and the target carrier data comprises at least one number of target APIs.
6. An interface generating apparatus, comprising:
The plug-in determining module is used for determining a target data acquisition plug-in matched with the target data carrier;
the target carrier data acquisition module is used for acquiring target carrier data according to the target data acquisition plug-in;
the target API generation module is used for generating a target API according to the target carrier data;
The system comprises an isolation operation module, an operation notification request receiving module and an operation notification module, wherein the isolation operation module is used for constructing a data acquisition plug-in corresponding to each data carrier for each data carrier;
The target data acquisition plug-in is used for establishing target logic connection with the target carrier data according to the target data set address so as to acquire the target carrier data through the target logic connection.
7. An electronic device, the electronic device comprising:
one or more processors;
a storage means for storing one or more programs;
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the interface generation method of any of claims 1-5.
8. A computer storage medium having stored thereon a computer program, which when executed by a processor implements the interface generation method of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011455254.4A CN112506490B (en) | 2020-12-10 | 2020-12-10 | Interface generation method, device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011455254.4A CN112506490B (en) | 2020-12-10 | 2020-12-10 | Interface generation method, device, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112506490A CN112506490A (en) | 2021-03-16 |
CN112506490B true CN112506490B (en) | 2025-02-14 |
Family
ID=74973418
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011455254.4A Active CN112506490B (en) | 2020-12-10 | 2020-12-10 | Interface generation method, device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112506490B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113253977A (en) * | 2021-07-13 | 2021-08-13 | 天聚地合(苏州)数据股份有限公司 | Code file generation method, electronic device and computer-readable storage medium |
CN114090124A (en) * | 2021-11-23 | 2022-02-25 | 智器云南京信息科技有限公司 | Data processing method, apparatus, computer equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108628648A (en) * | 2017-03-16 | 2018-10-09 | 华为软件技术有限公司 | Data processing method and data processing equipment |
CN109471786A (en) * | 2018-11-16 | 2019-03-15 | 苏州好玩友网络科技有限公司 | A kind of collecting method, device, equipment and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9311462B1 (en) * | 2011-03-04 | 2016-04-12 | Zynga Inc. | Cross platform social networking authentication system |
CN106874027A (en) * | 2016-12-25 | 2017-06-20 | 北京通途永久科技有限公司 | A kind of transportation industry quality of data monitoring platform based on plug-in unit mode |
CN110008045B (en) * | 2019-04-12 | 2021-12-10 | 深圳乐信软件技术有限公司 | Method, device and equipment for aggregating microservices and storage medium |
-
2020
- 2020-12-10 CN CN202011455254.4A patent/CN112506490B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108628648A (en) * | 2017-03-16 | 2018-10-09 | 华为软件技术有限公司 | Data processing method and data processing equipment |
CN109471786A (en) * | 2018-11-16 | 2019-03-15 | 苏州好玩友网络科技有限公司 | A kind of collecting method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112506490A (en) | 2021-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110008045B (en) | Method, device and equipment for aggregating microservices and storage medium | |
CN112711581B (en) | Medical data checking method and device, electronic equipment and storage medium | |
CN112527848B (en) | Report data query method, device and system based on multiple data sources and storage medium | |
CN107133309B (en) | Method and device for storing and querying process example, storage medium and electronic equipment | |
CN111240940B (en) | Real-time service monitoring method and device, electronic equipment and storage medium | |
CN111694866A (en) | Data searching and storing method, data searching system, data searching device, data searching equipment and data searching medium | |
CN112035159B (en) | Configuration method, device, equipment and storage medium of audit model | |
CN112506490B (en) | Interface generation method, device, electronic device and storage medium | |
CN114780564A (en) | Data processing method, data processing apparatus, electronic device and storage medium | |
US10305983B2 (en) | Computer device for distributed processing | |
CN114780361A (en) | Log generation method, device, computer system and readable storage medium | |
CN112100211B (en) | Data storage method, apparatus, electronic device, and computer readable medium | |
CN112000491B (en) | Application program interface calling method, device, equipment and storage medium | |
CN117725441B (en) | Rights management method, device, readable storage medium and electronic device | |
CN113094415B (en) | Data extraction method, data extraction device, computer readable medium and electronic equipment | |
CN108920602B (en) | Method and apparatus for outputting information | |
CN107832347B (en) | Data dimension reduction method and system and electronic equipment | |
CN114201508B (en) | Data processing method, data processing device, electronic device and storage medium | |
CN114218240B (en) | Data change method, device, equipment, medium and program product | |
CN113746661B (en) | A business processing method and device | |
US20230010906A1 (en) | System event analysis and data management | |
CN115934737A (en) | Data processing method, device, equipment and storage medium | |
CN114861054A (en) | Information collection method, device, electronic device and storage medium | |
CN113849508A (en) | A data storage method, apparatus, device and medium | |
CN113485890A (en) | Flight inquiry system service monitoring method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |