CN106649488B - Method and device for calling multi-data-source interactive interface - Google Patents

Method and device for calling multi-data-source interactive interface Download PDF

Info

Publication number
CN106649488B
CN106649488B CN201610877852.8A CN201610877852A CN106649488B CN 106649488 B CN106649488 B CN 106649488B CN 201610877852 A CN201610877852 A CN 201610877852A CN 106649488 B CN106649488 B CN 106649488B
Authority
CN
China
Prior art keywords
interface
combined
basic
output
input parameters
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
Application number
CN201610877852.8A
Other languages
Chinese (zh)
Other versions
CN106649488A (en
Inventor
陈强
赖晓哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong No.7 Digital Service Co., Ltd
Original Assignee
Guangdong Wangjin Data Service Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Wangjin Data Service Co ltd filed Critical Guangdong Wangjin Data Service Co ltd
Priority to CN201610877852.8A priority Critical patent/CN106649488B/en
Publication of CN106649488A publication Critical patent/CN106649488A/en
Application granted granted Critical
Publication of CN106649488B publication Critical patent/CN106649488B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for calling a multi-data source interactive interface, wherein the method comprises the steps of obtaining a combined interface calling request sent by a client, wherein the combined interface calling request comprises a combined interface id and an input parameter; acquiring combined interface configuration information and basic interface configuration information according to the combined interface id; and then judging whether the input parameters are complete, if so, calling basic interfaces corresponding to all combined interfaces and processing to obtain an output result, and returning the output result to the client. The invention reduces the workload of the working personnel by calling the combined interface and the basic interface which are configured on the server; meanwhile, when the client accesses, the corresponding basic interface can be directly called and processed through the combined interface id, so that an output result is obtained and returned to the client, and the processing speed is higher.

Description

Method and device for calling multi-data-source interactive interface
Technical Field
The invention relates to the field of internet communication, in particular to a method for calling and processing an interactive interface of multiple data sources.
Background
In the big data industry, a large part of data is obtained by other data providers besides the user data accumulated by the data sources in history. For example, card transaction information of a user is acquired from the Unionpay and China financial authentication center, face recognition related information is acquired from face + +, social security payment related information is acquired from Shanghai Sanwu, and mobile phone card use related information is acquired from China mobile. The use of external data sources is generally obtained by calling the interfaces of data suppliers, and the type and the number of the interfaces provided by each supplier are different.
For example, for the identity checking function, 3 interfaces provided by the china financial authentication center and one interface of the silver union intelligent policy need to be called simultaneously; for the credit checking function, an interface provided by the China money amount authentication center, an interface of the Unionpay intelligent policy and a data interface owned by the company need to be called at the same time. Therefore, on the premise that a plurality of basic interfaces are packaged, for new requirements of each user, codes need to be written additionally to integrate the required interfaces, but when the number of the interfaces reaches a certain degree, development and maintenance costs are high, and the disadvantage of repeated development exists, so that resource waste is caused. In addition, when the interface is called, the access speed is also relatively low.
Disclosure of Invention
In order to overcome the defects of the prior art, one of the purposes of the present invention is to provide a method for calling an interactive interface of multiple data sources, which can solve the technical problem of high development and maintenance costs of workers when acquiring data from multiple data sources through the interface in the prior art.
One of the purposes of the invention is realized by adopting the following technical scheme:
the invention provides a method for calling an interactive interface of multiple data sources, which comprises the following steps:
s1: acquiring a combined interface calling request sent by a client; the combined interface calling request comprises a combined interface id and an input parameter;
s2: searching a combined interface corresponding to the combined interface id in a combined interface configuration table, wherein the configuration information of the combined interface comprises combined interface configuration input parameters and a corresponding basic interface id;
s3: comparing the input parameters with the input parameters configured by the combined interface, checking whether the input parameters are complete, if not, returning to a client or ending the process, and if so, executing S4;
s4: and searching the basic interface corresponding to each basic interface id through the basic interface configuration table, calling and processing to obtain an output result of the combined interface, and returning the output result to the client.
Preferably, S4 specifically includes:
when the combined interface is a synchronous interface, namely each basic interface is a synchronous basic interface, calling each basic interface and processing to obtain the output parameter of the corresponding basic interface, then converting all the output parameters into the output result of the combined interface according to the mapping relation between the output result of the combined interface and the output parameter of the corresponding basic interface, and returning the output result to the client; the mapping relation between the output result of the combined interface and the output parameter of the corresponding basic interface is stored in a combined _ basic output mapping table;
when the combined interface is an asynchronous interface, that is, one or more basic interfaces which are asynchronous exist, each basic interface is called and processed, then a serial number corresponding to the combined interface is generated, and the serial number is returned to the client.
Preferably, when the combined interface is an asynchronous interface, the method further includes:
when one or more base interfaces which are synchronous exist, the synchronous base interfaces are called and output parameters of the synchronous base interfaces are stored in the asynchronous interface table.
Preferably, each basic interface has a corresponding configuration input parameter, and the configuration input parameters are stored in a parameter entry table;
the step of searching the basic interface corresponding to each basic interface id through the basic interface configuration table and calling and processing further specifically includes: and converting the input parameters into the input parameters of the corresponding basic interface according to the configuration input parameters of each basic interface, then obtaining the output parameters of the basic interface according to each basic interface and the input parameters thereof, and combining and converting all the output parameters to obtain the output result of the combined interface.
In order to overcome the defects of the prior art, the invention also aims to provide a calling method of the interactive interface of multiple data sources, which can solve the problems in the prior art.
The second purpose of the invention is realized by adopting the following technical scheme:
the invention also provides a calling device of the multi-data source interactive interface, which comprises the following components:
the request acquisition module is used for acquiring a combined interface calling request sent by a client; the combined interface calling request comprises a combined interface id and an input parameter;
the information acquisition module is used for searching a combined interface corresponding to the combined interface id in a combined interface configuration table, and the configuration information of the combined interface comprises combined interface configuration input parameters and a corresponding basic interface id;
the judging module is used for comparing the input parameters with the input parameters configured by the combined interface and checking whether the input parameters are complete or not, if not, returning to a client or ending the flow, and if so, executing the processing module;
and the processing module is used for searching the basic interface corresponding to each basic interface id through the basic interface configuration table and calling and processing to obtain an output result of the combined interface and returning the output result to the client.
Preferably, the processing procedure of the processing module specifically includes:
when the combined interface is a synchronous interface, namely each basic interface is a synchronous basic interface, calling each basic interface and processing to obtain the output parameter of the corresponding basic interface, then converting all the output parameters into the output result of the combined interface according to the mapping relation between the output result of the combined interface and the output parameter of the corresponding basic interface, and returning the output result to the client; the mapping relation between the output result of the combined interface and the output parameter of the corresponding basic interface is stored in a combined _ basic output mapping table;
when the combined interface is an asynchronous interface, that is, one or more basic interfaces which are asynchronous exist, each basic interface is called and processed, then a serial number corresponding to the combined interface is generated, and the serial number is returned to the client.
Preferably, when the combined interface is an asynchronous interface, the method further includes:
when one or more base interfaces which are synchronous exist, the synchronous base interfaces are called and output parameters of the synchronous base interfaces are stored in the asynchronous interface table.
Preferably, each basic interface has a corresponding configuration input parameter, and the configuration input parameters are stored in a parameter entry table;
the step of searching the basic interface corresponding to each basic interface id through the basic interface configuration table and calling and processing further specifically includes:
and converting the input parameters into the input parameters of the corresponding basic interface according to the configuration input parameters of each basic interface, then obtaining the output parameters of the basic interface according to each basic interface and the input parameters thereof, and combining and converting all the output parameters to obtain the output result of the combined interface.
Compared with the prior art, the invention has the beneficial effects that: the basic interface after being packaged is configured, so that a worker can configure a combined interface with a required function according to the requirement of the worker, the workload of the development worker is reduced, the customer can configure an adding interface according to the requirement of the customer, and the operation is convenient and visual; in the process of interface calling, the processing speed is very high. In addition, the invention has good expansibility with the increase of the number of the accessed data domains and the basic interfaces.
Drawings
FIG. 1 is a flow chart of a method according to an embodiment of the present invention;
fig. 2 is a block diagram of an embodiment of the present invention.
Detailed Description
The invention will be further described with reference to the accompanying drawings and the detailed description below:
as shown in fig. 1, the present invention provides a method for invoking an interactive interface with multiple data sources, wherein before a user interacts with a server through a client, a worker needs to configure the interface, generally, the interface includes a basic interface and a combined interface, the basic interface is an interface that can implement some basic functions and is provided by a developer of a data provider after being packaged, and the basic interface has input parameters and output parameters, a method for how to process and convert the input parameters into the output parameters, and the like. The combined interface is characterized in that a plurality of basic interfaces are combined to jointly complete complex functions, under the original development mode, the combined interface is directly developed and packaged by developers and then is used by users, but different combined interfaces required by different users are different, so that various different combined interfaces are continuously developed, even a large amount of repeated work can occur, and the basic solution and the realization of the combined interface are stored in a database, so that the later maintenance cost is greatly increased. The combined interface is realized by adopting a configuration mode, because the realization of a common combined interface is realized by jointly completing a plurality of basic interfaces, a combined interface and a plurality of corresponding basic interfaces form a mapping relation in the configuration mode, therefore, when one combined interface is called, the corresponding basic interface is called for processing, and then the output parameters of all the basic interfaces are integrated or converted to obtain the output result of the combined interface, thereby greatly saving the workload of developers and reducing a large amount of repeated development. That is, when a user needs to call a combined interface, the basic interface is called first, and then the output parameters are converted to obtain a final output result.
In general, basic interfaces are ubiquitous and are provided to customers through packaging by developers. When complex functions need to be performed, a worker configures the combined interfaces through the client, firstly, different combined interfaces are defined according to different functions, then, all the combined interfaces are configured in a combined interface configuration table, the combined interface configuration table is used for storing configuration information of the combined interfaces, each combined interface comprises combined interface id, combined interface name, combined interface configuration input parameters, corresponding basic interface id and other related configuration information, and the combined interface configuration table is stored on the server. In addition, the basic interfaces are also configured in a basic interface configuration table, and each basic interface also includes related information such as a basic interface id, a basic interface name, basic interface configuration input parameters, basic interface output parameters, a basic interface processing method, and the like, and the related information can be configured according to specific needs. In addition, a corresponding parameter entry table and a parameter exit table are also configured, wherein the parameter entry table is used for configuring configuration input parameters of the basic interface, and the configuration input parameters comprise information such as types and sizes of the configuration input parameters; the parameter table is used for configuring output parameters of the storage base interface, such as the type, the size and the like of the output parameters. In addition, the worker also establishes a combination _ basic output mapping table, which is used for storing the mapping relationship between the output result of the combination interface and the output parameters of the corresponding basic interfaces, for example, one combination interface has three basic interfaces, the output result of the combination interface is obtained by combining the output parameters of the corresponding three basic interfaces, and the table stores the mapping relationship between the output parameters of the combination interface and the output parameters of the three basic interfaces, that is, how to obtain the output parameters of the combination interface through the output parameters of the three basic interfaces. When the combined interface is called, all the basic interfaces in the combined interface are called to obtain the output parameters, and then the output parameters are converted and mapped into the output parameters of the combined interface and then returned to the client. The configuration method can self-define the combined interface according to the self-demand function, is very intuitive and convenient for the working personnel, greatly saves the workload of the working personnel compared with the original direct development mode, simultaneously calls the corresponding interface in a table look-up mode, and then directly calls the corresponding interface through the corresponding interface id, and has higher access speed, but does not search the interface in a database according to the input parameters, the output parameters and other related data of the interface (the access speed is reduced because of a plurality of interfaces in the original mode).
The method for calling the multi-data source interactive interface comprises the following steps:
s1: acquiring a combined interface calling request sent by a client, wherein the combined interface calling request comprises a combined interface id and an input parameter.
In this step, when a user needs to call a certain interface to obtain data, for example, for an "identity check" function, generally, 3 basic interfaces provided by the chinese financial authentication center and 1 basic interface provided by the silver union intelligent policy are needed to obtain data, in the present invention, the 4 basic interfaces are combined into one combined interface to implement the above function, when the user needs to implement the function, the user only needs to call a corresponding combined interface, and sends a combined interface call request to the server through the client, where the request includes a combined interface id and corresponding input parameters.
S2: and searching a combined interface corresponding to the combined interface id in a combined interface configuration table, wherein the configuration information of the combined interface comprises a combined interface name, combined interface configuration input parameters and a corresponding basic interface id. The combined interface configuration table can exist in the server in a cache table mode, and the access speed is high during processing.
After receiving a combined interface call request sent by a client, first obtaining a combined interface id from the call request, and then obtaining configuration information of the combined interface and the combined interface thereof from a combined interface configuration table according to the combined interface id, where the configuration information of the combined interface may include a combined interface name, combined interface configuration input parameters, and a corresponding basic interface id. Of course, if the combined interface id may not be found in this step, it indicates that the combined interface call request of the user is incorrect, and an error message is returned to notify the client.
S3: comparing the input parameters with the input parameters configured by the combined interface, checking whether the input parameters are complete, and if not, returning to the client or ending the process; if yes, go to S4.
Before the basic interface is called, firstly, the integrity of the input parameters is judged, that is, whether the input parameters in the combined interface calling request are complete, such as whether the types, sizes and the like of the input parameters are legal or complete is judged according to the combined interface configuration input parameters, if the input parameters are incomplete, the input is wrong, and error information is returned to the client to prompt a user; and if the data is complete, continuing to perform the next processing.
S4: and respectively searching the basic interface corresponding to each basic interface id in the basic interface configuration table, calling and processing to obtain an output result of the combined interface, and returning the output result to the client.
In this step, when all the basic interface ids corresponding to the combined interface are found through the combined interface id, the basic interface corresponding to each basic interface id needs to be searched in the basic interface configuration table, then, each basic interface is called to obtain a corresponding output parameter, and finally, all the output parameters are combined to obtain an output result of the combined interface and returned to the client.
Further, each basic interface has its configuration information, including configuration input parameters, output parameters, the name of the basic interface, etc., wherein the information of the configuration input parameters is stored in a parameter table, such as the type and size of the configuration input parameters. When the corresponding basic interface is found through the basic interface id, firstly, the input parameters in the combined calling request are converted into the corresponding input parameters according to the configuration input parameters of each basic interface, then, the output parameters of the basic interface are obtained according to each basic interface and the input parameters of the basic interface, finally, the output results of the combined interface are obtained through all the output parameters according to the combined _ basic output mapping table, and the output results are returned to the client. The combination _ basic output mapping table is used for storing the mapping relation between the output result of the combination interface and the output parameter of the corresponding basic interface. For example, when the combined interface is called, all the basic interfaces corresponding to the combined interface are called and processed first to obtain the output parameters corresponding to each basic interface, and then the output parameters are used to obtain the output result of the combined interface according to the mapping relation stored in the combined _ basic output mapping table.
Further, since the types of the interfaces may include a synchronous interface and an asynchronous interface, the combined interface involved in the present invention may also include a synchronous interface and an asynchronous interface, respectively. Generally, a combination interface includes a plurality of basic interfaces, and therefore, if each basic interface corresponding to the combination interface is a synchronous interface, the combination interface is considered as a synchronous interface; and if one of the basic interfaces corresponding to the combined interface is an asynchronous interface, the combined interface is considered as the asynchronous interface. Therefore, S4 specifically includes the following steps: firstly, judging the type of the combined interface:
s41: and when the combined interface is a synchronous interface, namely all the basic interfaces are synchronous basic interfaces, calling each basic interface and processing to obtain a corresponding output parameter, then converting the output parameter into an output result of the combined interface according to the basic _ combined output mapping table, and returning the output result to the client.
S42: when the combined interface is an asynchronous interface, that is, there is one or more than one asynchronous interface in the basic interface corresponding to the combined interface, the method further includes:
and when all the basic interfaces are asynchronous interfaces, calling all the basic interfaces, generating a serial number corresponding to the combined interface, and returning the serial number to the client.
When one of the basic interfaces is a synchronous basic interface, calling the synchronous basic interface, and firstly storing the corresponding output parameters in an asynchronous interface table; and meanwhile, calling an asynchronous basic interface, generating a serial number corresponding to the combined interface, and returning the serial number to the client.
The serial number refers to a certificate returned to the client by the server, and when the combined interface is an asynchronous interface, only one unique serial number is returned to the client by calling one combined interface; the serial number is used for example to return a serial number to the client, so that the client waits for a period of time and then returns an output result. In addition, due to the existence of the asynchronous basic interface, output parameters may not be obtained in real time, and output parameters of the synchronous basic interface can be obtained in real time, so when the combined interface is an asynchronous interface, the output parameters of the synchronous basic interface are firstly stored, and output parameters of other asynchronous interfaces are waited for, so that the output parameters of the synchronous basic interface and the output parameters of the asynchronous basic interface are finally combined and converted to obtain an output result finally required by a client.
As shown in fig. 2, the present invention further provides a device for invoking an interactive interface with multiple data sources, which includes:
the request acquisition module is used for acquiring a combined interface calling request sent by a client; the combined interface calling request comprises a combined interface id and an input parameter;
the information acquisition module is used for searching a combined interface corresponding to the combined interface id in a combined interface configuration table, and the configuration information of the combined interface comprises combined interface configuration input parameters and a corresponding basic interface id;
the judging module is used for comparing the input parameters with the input parameters configured by the combined interface and checking whether the input parameters are complete or not, if not, returning to a client or ending the flow, and if so, executing the processing module;
and the processing module is used for searching the basic interface corresponding to each basic interface id through the basic interface configuration table and calling and processing to obtain an output result of the combined interface and returning the output result to the client.
Preferably, the processing procedure of the processing module specifically includes:
when the combined interface is a synchronous interface, namely each basic interface is a synchronous basic interface, calling each basic interface and processing to obtain the output parameter of the corresponding basic interface, then converting all the output parameters into the output result of the combined interface according to the mapping relation between the output result of the combined interface and the output parameter of the corresponding basic interface, and returning the output result to the client; the mapping relation between the output result of the combined interface and the output parameter of the corresponding basic interface is stored in a combined _ basic output mapping table;
when the combined interface is an asynchronous interface, that is, one or more basic interfaces which are asynchronous exist, each basic interface is called and processed, then a serial number corresponding to the combined interface is generated, and the serial number is returned to the client.
Preferably, when the combined interface is an asynchronous interface, the method further includes:
when one or more base interfaces which are synchronous exist, the synchronous base interfaces are called and output parameters of the synchronous base interfaces are stored in the asynchronous interface table.
Preferably, each basic interface has a corresponding configuration input parameter, and the configuration input parameters are stored in a parameter entry table;
the step of searching the basic interface corresponding to each basic interface id through the basic interface configuration table and calling and processing further specifically includes:
and converting the input parameters into the input parameters of the corresponding basic interface according to the configuration input parameters of each basic interface, then obtaining the output parameters of the basic interface according to each basic interface and the input parameters thereof, and combining and converting all the output parameters to obtain the output result of the combined interface.
According to the invention, the basic interface after encapsulation is configured, so that a worker can define a combined interface which meets the self requirement according to a self-defined mode, and the method is very visual and convenient; in addition, under the condition that the total number of the data fields and the contact interfaces accessed later is gradually increased, compared with the existing direct development mode (the original direct development mode has a large amount of repeated development work), the configuration mode greatly saves the workload of developers and has good expandability.
In addition, the staff also provides an access url for all the combined interfaces in a unified way, and when the user calls the combined interfaces, the client is connected with the server in an http connection mode. Therefore, the interfaces can be managed uniformly, and the modules for charging, log management, data storage and the like are greatly facilitated.
The efficiency of interface calling is very high, for example, on a common server with 8g memory and 3Ghz CPU, the application calling frequency of 100/s can be realized; the parallel processing is adopted on the calling processing of a plurality of basic interfaces, and the interfaces are called by reading the configuration in the cache, so that the efficiency of calling the interfaces is greatly improved.
Various other modifications and changes may be made by those skilled in the art based on the above-described technical solutions and concepts, and all such modifications and changes should fall within the scope of the claims of the present invention.

Claims (6)

1. The method for calling the multi-data source interactive interface is characterized by comprising the following steps:
s1: acquiring a combined interface calling request sent by a client; the combined interface calling request comprises a combined interface id and an input parameter;
s2: searching a combined interface corresponding to the combined interface id in a combined interface configuration table, wherein the configuration information of the combined interface comprises combined interface configuration input parameters and a corresponding basic interface id;
s3: comparing the input parameters with the input parameters configured by the combined interface, checking whether the input parameters are complete, if not, returning to a client or ending the process, and if so, executing S4;
s4: searching a basic interface corresponding to each basic interface id through a basic interface configuration table and calling and processing to obtain an output result of the combined interface and returning the output result to the client; s4 specifically includes:
when the combined interface is a synchronous interface, namely each basic interface is a synchronous basic interface, calling each basic interface and processing to obtain the output parameter of the corresponding basic interface, then converting all the output parameters into the output result of the combined interface according to the mapping relation between the output result of the combined interface and the output parameter of the corresponding basic interface, and returning the output result to the client; the mapping relation between the output result of the combined interface and the output parameter of the corresponding basic interface is stored in a combined _ basic output mapping table;
when the combined interface is an asynchronous interface, that is, one or more basic interfaces which are asynchronous exist, each basic interface is called and processed, then a serial number corresponding to the combined interface is generated, and the serial number is returned to the client.
2. The method for invoking an interactive interface between multiple data sources according to claim 1, wherein when said combined interface is an asynchronous interface, further comprising:
when one or more base interfaces which are synchronous exist, the synchronous base interfaces are called and output parameters of the synchronous base interfaces are stored in the asynchronous interface table.
3. The method for invoking an interactive interface between multiple data sources according to claim 1, wherein each of said base interfaces has corresponding configuration input parameters, said configuration input parameters being stored in a parameter table;
the step of searching the basic interface corresponding to each basic interface id through the basic interface configuration table and calling and processing further specifically includes: and converting the input parameters into the input parameters of the corresponding basic interface according to the configuration input parameters of each basic interface, then obtaining the output parameters of the basic interface according to each basic interface and the input parameters thereof, and combining and converting all the output parameters to obtain the output result of the combined interface.
4. The calling device of the interactive interface of multiple data sources is characterized by comprising:
the request acquisition module is used for acquiring a combined interface calling request sent by a client; the combined interface calling request comprises a combined interface id and an input parameter;
the information acquisition module is used for searching a combined interface corresponding to the combined interface id in a combined interface configuration table, and the configuration information of the combined interface comprises combined interface configuration input parameters and a corresponding basic interface id;
the judging module is used for comparing the input parameters with the input parameters configured by the combined interface and checking whether the input parameters are complete or not, if not, returning to a client or ending the flow, and if so, executing the processing module;
the processing module is used for searching a basic interface corresponding to each basic interface id through the basic interface configuration table and calling and processing to obtain an output result of the combined interface and returning the output result to the client; the processing process of the processing module specifically includes:
when the combined interface is a synchronous interface, namely each basic interface is a synchronous basic interface, calling each basic interface and processing to obtain the output parameter of the corresponding basic interface, then converting all the output parameters into the output result of the combined interface according to the mapping relation between the output result of the combined interface and the output parameter of the corresponding basic interface, and returning the output result to the client; the mapping relation between the output result of the combined interface and the output parameter of the corresponding basic interface is stored in a combined _ basic output mapping table;
when the combined interface is an asynchronous interface, that is, one or more basic interfaces which are asynchronous exist, each basic interface is called and processed, then a serial number corresponding to the combined interface is generated, and the serial number is returned to the client.
5. The apparatus for invoking an interactive interface between multiple data sources according to claim 4, wherein said combined interface is an asynchronous interface, further comprising:
when one or more base interfaces which are synchronous exist, the synchronous base interfaces are called and output parameters of the synchronous base interfaces are stored in the asynchronous interface table.
6. The apparatus for invoking an interactive interface between multiple data sources according to claim 4, wherein each of said base interfaces has corresponding configuration input parameters, said configuration input parameters being stored in a parameter table;
the step of searching the basic interface corresponding to each basic interface id through the basic interface configuration table and calling and processing further specifically includes:
and converting the input parameters into the input parameters of the corresponding basic interface according to the configuration input parameters of each basic interface, then obtaining the output parameters of the basic interface according to each basic interface and the input parameters thereof, and combining and converting all the output parameters to obtain the output result of the combined interface.
CN201610877852.8A 2016-09-30 2016-09-30 Method and device for calling multi-data-source interactive interface Active CN106649488B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610877852.8A CN106649488B (en) 2016-09-30 2016-09-30 Method and device for calling multi-data-source interactive interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610877852.8A CN106649488B (en) 2016-09-30 2016-09-30 Method and device for calling multi-data-source interactive interface

Publications (2)

Publication Number Publication Date
CN106649488A CN106649488A (en) 2017-05-10
CN106649488B true CN106649488B (en) 2020-05-05

Family

ID=58853688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610877852.8A Active CN106649488B (en) 2016-09-30 2016-09-30 Method and device for calling multi-data-source interactive interface

Country Status (1)

Country Link
CN (1) CN106649488B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107194014B (en) * 2017-07-04 2021-05-28 贵州数据宝网络科技有限公司 Data source calling method and device
CN107809332A (en) * 2017-11-10 2018-03-16 中国民生银行股份有限公司 Compound interface configures and compound interface call method, device
CN110162560A (en) * 2019-04-16 2019-08-23 深圳壹账通智能科技有限公司 Finance data interface butt joint method, device, computer equipment and storage medium
CN111694923A (en) * 2020-04-27 2020-09-22 平安科技(深圳)有限公司 Name mapping-based parameter assignment method and device, and computer equipment
CN112181520B (en) * 2020-09-27 2024-05-14 新奥数能科技有限公司 Interface design method and configuration tool for energy equipment
CN113791766B (en) * 2021-09-16 2023-05-16 易保网络技术(上海)有限公司 Method for combining data interfaces, electronic device and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383749A (en) * 2012-05-04 2013-11-06 上海盛霄云计算技术有限公司 Method and system for automatic integration of multiple management systems
CN104168148A (en) * 2014-05-04 2014-11-26 杭州立地信息技术有限公司 Multi-interface data collecting device and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050050320A1 (en) * 2003-09-02 2005-03-03 Microsoft Corporation Branding framework
CN101615116B (en) * 2008-06-23 2012-12-12 成都市华为赛门铁克科技有限公司 Method, device and system for acquiring interface
CN104852939B (en) * 2014-02-18 2018-07-24 中国电信股份有限公司 A kind of method and system of deployment ability interface
CN105446714B (en) * 2014-08-14 2019-03-15 阿里巴巴集团控股有限公司 Interface call method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383749A (en) * 2012-05-04 2013-11-06 上海盛霄云计算技术有限公司 Method and system for automatic integration of multiple management systems
CN104168148A (en) * 2014-05-04 2014-11-26 杭州立地信息技术有限公司 Multi-interface data collecting device and method

Also Published As

Publication number Publication date
CN106649488A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106649488B (en) Method and device for calling multi-data-source interactive interface
CN109194495B (en) Server, message processing method, and computer-readable storage medium
RU2648966C2 (en) Apparatus and method for processing multiple open api
WO2018184535A1 (en) Insurance service processing method and device, server, and storage medium
CN107145784B (en) Vulnerability scanning method and device and computer readable medium
CN105610819B (en) The method and apparatus of the query service of server info are provided
US10754628B2 (en) Extracting web API endpoint data from source code to identify potential security threats
CN113254445B (en) Real-time data storage method, device, computer equipment and storage medium
CN109241384A (en) A kind of method for visualizing and device of scientific research information
CN115587575A (en) Data table creation method, target data query method, device and equipment
CN115408193A (en) Method and device for processing error codes among multiple modules
CN116611411A (en) Business system report generation method, device, equipment and storage medium
CN111666328A (en) Method and device for displaying visual chart in real time, computer equipment and storage medium
CN108959294B (en) Method and device for accessing search engine
CN110782310B (en) Method, device and system for asynchronously acquiring user attribute information from third-party platform
CN113010542A (en) Service data processing method and device, computer equipment and storage medium
CN112100260A (en) Interface engine-based multi-application data fusion method and system
CN112491943A (en) Data request method, device, storage medium and electronic equipment
US11803786B2 (en) Enterprise integration platform
CN110881030A (en) Logstack-based method and device for recording operation logs of web service administrator
CN110874365A (en) Information query method and related equipment thereof
CN115934537A (en) Interface test tool generation method, device, equipment, medium and product
CN115168358A (en) Database access method and device, electronic equipment and storage medium
CN114881739A (en) Order event processing method and device, electronic equipment and storage medium
CN109561146A (en) Document down loading method, device, terminal device

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
CP03 Change of name, title or address

Address after: 510000 room 1601, No. 68, Huacheng Avenue, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: Guangdong No.7 Digital Service Co., Ltd

Address before: 510000, 01-04, room 18, Yuexiu finance building, 28 Zhujiang East Road, Guangdong, Tianhe District, Guangzhou, China

Patentee before: GUANGDONG WANGJIN DATA SERVICE Co.,Ltd.

CP03 Change of name, title or address