CN114510501A - Method and device for processing interface data in real time - Google Patents

Method and device for processing interface data in real time Download PDF

Info

Publication number
CN114510501A
CN114510501A CN202111630424.2A CN202111630424A CN114510501A CN 114510501 A CN114510501 A CN 114510501A CN 202111630424 A CN202111630424 A CN 202111630424A CN 114510501 A CN114510501 A CN 114510501A
Authority
CN
China
Prior art keywords
interface
target
information
target data
data set
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.)
Pending
Application number
CN202111630424.2A
Other languages
Chinese (zh)
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.)
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing 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 Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN202111630424.2A priority Critical patent/CN114510501A/en
Publication of CN114510501A publication Critical patent/CN114510501A/en
Pending legal-status Critical Current

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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • 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/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method and a device for processing interface data in real time, wherein the method comprises the following steps: acquiring a query statement of a request interface, and analyzing the query statement to obtain target data information; searching in preconfigured metadata based on the target data information, and determining a target interface corresponding to the query statement, wherein the metadata comprises interface description information; calling the target interface, acquiring a target interface return result and converting the target interface return result into a target data set; and calculating the target data set, acquiring a calculation result, and taking the calculation result as the result of the query statement. It is achieved that the target interface can be called in real time and the query of the interface data is supported without the aid of the query capability of the database.

Description

Method and device for processing interface data in real time
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for processing interface data in real time.
Background
In the prior art, the interface data processing mode is to call an interface at regular time, store the interface return result into a database, and then use the database for query; however, this method has the disadvantages that the interface data needs to be stored in the database, and then the query capability of the database is used to realize the query of the interface data, and because the interface is called regularly, the real-time performance of the data cannot be guaranteed.
Disclosure of Invention
The invention provides a method and a device for processing interface data in real time, which can realize real-time calling of a target interface and support the query of the interface data without the query capability of a database.
In a first aspect, an embodiment of the present invention provides a method for processing interface data in real time, including:
acquiring a query statement of a request interface, and analyzing the query statement to obtain target data information;
searching in preconfigured metadata based on the target data information, and determining a target interface corresponding to the query statement, wherein the metadata comprises interface description information;
calling the target interface, acquiring a target interface return result and converting the target interface return result into a target data set;
and calculating the target data set, acquiring a calculation result, and taking the calculation result as the result of the query statement.
According to the method for processing interface data in real time provided by the invention, before the query statement of the request interface is obtained and analyzed to obtain the target data information, the method comprises the following steps:
acquiring configuration information of an interface, calling the interface based on the configuration information and a debugging parameter value corresponding to the interface, and acquiring an interface return result, wherein the configuration information comprises: uniform resource locator, authentication information, request header information and request parameters;
determining a preprocessing script of an interface, and converting an interface return result into a data set by running the preprocessing script, wherein the data set is identified in a two-dimensional table form;
and defining column information of a two-dimensional table in the data set, storing the column information of the two-dimensional table in a database, and using the column information of the two-dimensional table as description information of the interface in the metadata.
According to the method for processing interface data in real time provided by the invention, the target data information comprises: a target data table;
the searching in the preconfigured metadata based on the target data information and the determining the target interface corresponding to the query statement includes:
and searching in the preset metadata based on the target data table, and determining a target interface corresponding to the query statement according to the description information of the searched target interface.
According to the method for processing interface data in real time provided by the invention, the target data information comprises query parameters;
prior to said invoking said target interface, said method further comprising:
and setting the debugging parameter value of the target interface based on the query parameter.
According to the method for processing interface data in real time provided by the invention, the converting the target interface return result into a target data set comprises the following steps:
and determining a target preprocessing script of the target interface, and converting a target interface return result into a target data set by running the target preprocessing script.
According to the method for processing interface data in real time provided by the invention, the target data information comprises: calculating an expression;
the calculating the target data set to obtain a calculation result includes:
converting the computational expression into a target computational expression corresponding to the target data set;
and calculating the target data set through the target calculation expression to obtain a calculation result.
In a second aspect, an embodiment of the present invention provides an apparatus for processing interface data in real time, including:
the acquisition module is used for acquiring the query statement of the request interface and analyzing the query statement to obtain target data information;
the searching module is used for searching in preset metadata based on the target data information and determining a target interface corresponding to the query statement;
the calling module is used for calling the target interface, acquiring a target interface return result and converting the target interface return result into a target data set;
and the calculation module is used for calculating the target data set, acquiring a calculation result and taking the calculation result as the result of the query statement.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method for processing interface data in real time according to any one of the above descriptions when executing the program.
In a fourth aspect, embodiments of the present invention provide a non-transitory computer readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing the steps of a method for real-time processing of interface data as described in any one of the above.
In a fifth aspect, an embodiment of the present invention provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the method for processing interface data in real time according to any one of the above descriptions.
The invention provides a method and a device for processing interface data in real time, which are characterized in that target data information is obtained by acquiring query sentences of a request interface and analyzing the query sentences; searching in pre-configured metadata comprising interface description information based on target data information, determining a target interface corresponding to the query statement, calling the target interface, obtaining a target interface return result, converting the target interface return result into a target data set, and not needing to store the obtained target data set in a database; and finally, calculating the target data set to obtain a calculation result, wherein the obtained calculation result is also a result of inquiring the interface data by the inquiry statement. It is achieved that the target interface can be called in real time and the query of the interface data is supported without the aid of the query capability of the database.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a method for processing interface data in real time according to an embodiment of the present invention;
fig. 2 is a flowchart of acquiring configuration information of an interface according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for processing Rest interface data in real time according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an apparatus for real-time processing of interface data according to an embodiment of the present invention;
fig. 5 is a schematic physical structure diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a method for processing interface data in real time according to an embodiment of the present invention includes:
and 110, acquiring a query statement of the request interface, and analyzing the query statement to obtain target data information.
In the step, the interface can be an abbreviation of Rest interface, Rest, and Representational State Transfer, and is a design style and development mode of a network application program.
Query statements refer to SQL statements, which are specifically structured query languages, which are database query and programming languages used to access data and query, update, and manage relational database systems, data analysis largely uses the SQL language as the query language.
For example, the query statement is a statement of a query user requesting the user interface, and the statement of the query user is analyzed to obtain target data information, where the target data information may include related information of the user interface, user data, query conditions, and the like.
And 120, searching in preconfigured metadata based on the target data information, and determining a target interface corresponding to the query statement, wherein the metadata includes description information of the interface.
In this step, description information of the different interfaces is included in the metadata. For example, if the obtained target data information is about a user interface, the description information of the corresponding user interface is searched in the metadata, and the target interface corresponding to the query statement is the user interface.
And 130, calling the target interface, acquiring a target interface return result and converting the target interface return result into a target data set.
In this step, the target interface is a Rest interface, and the corresponding return result may have XML, Json, or other formats.
The target data set is specifically identified in the form of a two-dimensional table, which is a representation method of a data structure, where a first row in the two-dimensional table may represent a field name, and a first column may represent a data type of the field name.
And 140, calculating the target data set, acquiring a calculation result, and taking the calculation result as the result of the query statement.
In this step, the calculation refers to the calculation of the target data set through functions such as aggregation, grouping, screening, sorting, date, and the like.
The invention provides a method for processing interface data in real time, which obtains target data information by acquiring query sentences of a request interface and analyzing the query sentences; searching in pre-configured metadata comprising interface description information based on target data information, determining a target interface corresponding to the query statement, calling the target interface, obtaining a target interface return result, converting the target interface return result into a target data set, and not needing to store the obtained target data set in a database; and finally, calculating the target data set to obtain a calculation result, wherein the obtained calculation result is also a result of inquiring the interface data by the inquiry statement. It is achieved that the target interface can be called in real time and the query of the interface data is supported without the aid of the query capability of the database.
According to any of the above embodiments, before the step 110, the method includes the following steps 111-113:
step 111, obtaining configuration information of an interface, calling the interface based on the configuration information and a debugging parameter value corresponding to the interface, and obtaining an interface return result, wherein the configuration information includes: uniform resource locator, authentication information, request header information and request parameters.
In this step, the debugging parameter value refers to a value of a parameter that needs to be set for an interface when the interface is called, the debugging parameter value can be dynamically modified, and a default value is set for the debugging parameter value when the interface is configured.
The uniform resource locator is a URL, which is a compact representation of the location and access method to resources available on the internet, and is an address of a standard resource on the internet.
The authentication information can be understood as that the Http protocol is stateless, and the same client accesses the server for multiple times, so that the server cannot identify the association request of the same client and cannot store the state of the client. The client needs to carry corresponding identity information each time when initiating an Http request, and the server returns corresponding resources after acquiring the identity information. Therefore, the identity information of the client is carried in each interface request as the authentication information of the calling interface.
The request header information may include information such as a request mode, a target resource of the request, a protocol and a version number adopted by the request.
For example, in the Http request, the type of the request parameter may be a query string parameter, which is used for the GET request and is transmitted in a url string form; or a request body parameter, for a POST request, may use a Content-Type to specify different parameter types.
Step 112, determining a preprocessing script of the interface, and converting the interface return result into a data set by running the preprocessing script, wherein the data set is identified in a two-dimensional table form.
In this step, the pre-processing script refers to a script that is executed before the interface request.
Step 113, defining column information of a two-dimensional table in the data set, storing the column information of the two-dimensional table in a database, and using the column information of the two-dimensional table as description information of the interface in the metadata.
In this step, for example, a first row indicating a field name and a first column indicating a data type of the field name are defined in a data set identified by a two-dimensional table. Correspondingly, the first row of the two-dimensional table may be a user name, an age, etc., the data type of the corresponding user name is a character, and the data type of the age is a number.
Correspondingly, two columns of the user name and the age can be defined as the description information of the user interface in the embodiment of the invention.
In actual application, the definition may be performed according to a specific application scenario, and the embodiment of the present invention does not limit the column information of the defined two-dimensional table.
Based on any of the above embodiments, the target data information includes: a target data table;
the step 120 specifically includes:
and searching in the preset metadata based on the target data table, and determining the target interface corresponding to the query statement according to the description information of the searched target interface.
In this step, the target data table is obtained by analyzing the query statement, for example, the query statement is a statement for querying a user, and the corresponding target data table is a data table related to the user, and may include a user name, a user age, a user gender, and the like.
And if the target data table describes the information of the name, age, sex and the like of the user, the corresponding target interface is a user interface.
Based on any of the above embodiments, the target data information includes a query parameter;
prior to the step 130, the method further comprises:
and setting the debugging parameter value of the target interface based on the query parameter.
In this step, when configuring interface information, a default value is set for a debugging parameter value of the interface, and after determining the target interface, the default value is modified based on a query parameter corresponding to the target interface, and the debugging parameter value of the target interface is set as the query parameter.
Based on any of the above embodiments, the step 130 specifically includes:
and determining a target preprocessing script of the target interface, and converting a target interface return result into a target data set by running the target preprocessing script.
Based on any of the above embodiments, the target data information includes: calculating an expression;
the step 140 specifically includes the following steps 141 to 142:
step 141, converting the calculation expression into a target calculation expression corresponding to the target data set.
In the step, the calculation expression and the target calculation expression have the same meaning and are calculated, but the functions used by the calculation expression and the target calculation expression are different in format and are suitable for different calculation scenes.
And 142, calculating the target data set through the target calculation expression to obtain a calculation result.
In this step, for example, an aggregation function is used to perform aggregation function operation on the target data set to obtain an aggregation result, which is also a result of the SQL statement query.
Correspondingly, the result of the SQL statement query does not need to be stored in a database, data can be obtained in real time through calculation of a target data set in the memory, flexible SQL query is supported, and the query efficiency and the query real-time performance are improved.
Further, the embodiment of the present invention is additionally explained:
before the method for processing interface data in real time provided by the present invention, interface information needs to be configured in advance, as shown in fig. 2, which is a flowchart for acquiring configuration information of an interface provided by an embodiment of the present invention, a configuration process specifically includes:
and 210, acquiring configuration information of the Rest interface, wherein the configuration information comprises the URL, authentication information, a request header and request parameters.
And 220, calling the reset interface according to the configuration information and the debugging parameter value of the reset interface, and acquiring an interface return result.
And 230, running a preprocessing script of the Rest interface, and converting the data structure of the result returned by the interface into a data set, wherein the data set is identified in a two-dimensional table form.
And 240, defining column information of the two-dimensional table in the data set marked by the two-dimensional table, wherein the row information is a field name, and the column information is a data type.
And 250, storing the configuration information of the Rest interface, preprocessing the script, and taking the column information of the two-dimensional table as metadata, wherein the metadata comprises the description information of the interface.
The method for acquiring the configuration information of the interface, provided by the embodiment of the invention, is used for acquiring the metadata describing the interface information in advance, thereby providing a basis for realizing the real-time processing of the interface data subsequently.
Fig. 3 is a schematic flow chart of a method for processing Rest interface data in real time according to an embodiment of the present invention; the method specifically comprises the following steps:
310, obtaining the SQL statement requesting the Rest interface, and analyzing the SQL statement to obtain the target data table, the query parameters and the calculation expression.
And 320, searching a corresponding Rest target interface in the metadata according to the target data, and setting the debugging parameter value of the Rest target interface based on the query parameter.
And 330, calling a Rest target interface and executing a target preprocessing script on the returned result to convert the target data set into a target data set, wherein the target data set is identified in a two-dimensional table form.
340, converting the calculation expression obtained in the SQL statement into a target calculation expression corresponding to a function that can be executed on the target data set.
And 350, calculating the target data set by using the target calculation expression corresponding to the converted function.
And 360, taking the calculation result as the result of the SQL query.
The method for processing the interface data in real time provided by the embodiment of the invention analyzes and executes the calculation on the query statement based on the metadata, can realize real-time interface calling, and supports flexible SQL query on the interface data.
The following describes the device for processing interface data in real time according to the present invention, and the device for processing interface data in real time described below and the method for processing interface data in real time described above can be referred to correspondingly.
Referring to fig. 4, a schematic structural diagram of an apparatus for processing interface data in real time according to an embodiment of the present invention is provided, including:
an obtaining module 410, configured to obtain a query statement of a request interface, and analyze the query statement to obtain target data information;
a searching module 420, configured to search in preconfigured metadata based on the target data information, and determine a target interface corresponding to the query statement;
the calling module 430 is configured to call the target interface, obtain a target interface return result, and convert the target interface return result into a target data set;
the calculating module 440 is configured to calculate the target data set, obtain a calculation result, and use the calculation result as a result of the query statement.
The device for processing the interface data in real time obtains target data information by acquiring the query statement of a request interface and analyzing the query statement; searching in pre-configured metadata comprising interface description information based on target data information, determining a target interface corresponding to the query statement, calling the target interface, obtaining a target interface return result, converting the target interface return result into a target data set, and not needing to store the obtained target data set in a database; and finally, calculating the target data set to obtain a calculation result, wherein the obtained calculation result is also a result of inquiring the interface data by the inquiry statement. The method and the device realize real-time calling of the target interface and support query of interface data without the aid of query capability of a database.
Based on any embodiment above, the apparatus further comprises:
the calling module is used for obtaining configuration information of an interface, calling the interface based on the configuration information and a debugging parameter value corresponding to the interface, and obtaining an interface return result, wherein the configuration information comprises: uniform resource locator, authentication information, request header information and request parameters;
the determining module is used for determining a preprocessing script of an interface and converting an interface return result into a data set by running the preprocessing script, wherein the data set is identified in a two-dimensional table form;
and the definition module is used for defining the column information of the two-dimensional table in the data set, storing the column information of the two-dimensional table in a database and using the column information of the two-dimensional table as the description information of the interface in the metadata.
Based on any of the above embodiments, the target data information includes: a target data table;
the search module 420 is specifically configured to:
and searching in the preset metadata based on the target data table, and determining the target interface corresponding to the query statement according to the description information of the searched target interface.
Based on any of the above embodiments, the target data information includes a query parameter;
based on any embodiment above, the apparatus further comprises:
and the setting module is used for setting the debugging parameter value of the target interface based on the query parameter.
Based on any of the above embodiments, the invoking module 430 is specifically configured to:
and determining a target preprocessing script of the target interface, and converting a target interface return result into a target data set by running the target preprocessing script.
Based on any of the above embodiments, the target data information includes: calculating an expression;
the computing module 440 is specifically configured to
Converting the computational expression into a target computational expression corresponding to the target data set;
and calculating the target data set through the target calculation expression to obtain a calculation result, and taking the calculation result as the result of the query statement.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)510, a communication Interface (Communications Interface)520, a memory (memory)530, and a communication bus 540, wherein the processor 510, the communication Interface 520, and the memory 530 communicate with each other via the communication bus 540. Processor 510 may invoke logic instructions in memory 530 to perform a method of real-time processing of interface data, comprising: acquiring a query statement of a request interface, and analyzing the query statement to obtain target data information; searching in preconfigured metadata based on the target data information, and determining a target interface corresponding to the query statement, wherein the metadata comprises interface description information; calling the target interface, acquiring a target interface return result and converting the target interface return result into a target data set; and calculating the target data set, acquiring a calculation result, and taking the calculation result as the result of the query statement.
Furthermore, the logic instructions in the memory 530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being stored on a non-transitory computer readable storage medium, wherein when the computer program is executed by a processor, the computer is capable of executing a method for real-time processing of interface data provided by the above methods, the method comprising: acquiring a query statement of a request interface, and analyzing the query statement to obtain target data information; searching in preconfigured metadata based on the target data information, and determining a target interface corresponding to the query statement, wherein the metadata comprises interface description information; calling the target interface, acquiring a target interface return result and converting the target interface return result into a target data set; and calculating the target data set, acquiring a calculation result, and taking the calculation result as the result of the query statement.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a method for real-time processing of interface data provided by the above methods, including: acquiring a query statement of a request interface, and analyzing the query statement to obtain target data information; searching in preconfigured metadata based on the target data information, and determining a target interface corresponding to the query statement, wherein the metadata comprises interface description information; calling the target interface, acquiring a target interface return result and converting the target interface return result into a target data set; and calculating the target data set, acquiring a calculation result, and taking the calculation result as the result of the query statement.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for processing interface data in real time, comprising:
acquiring a query statement of a request interface, and analyzing the query statement to obtain target data information;
searching in preconfigured metadata based on the target data information, and determining a target interface corresponding to the query statement, wherein the metadata comprises interface description information;
calling the target interface, acquiring a target interface return result and converting the target interface return result into a target data set;
and calculating the target data set, acquiring a calculation result, and taking the calculation result as the result of the query statement.
2. The method of claim 1, wherein before the obtaining a query statement of a request interface and analyzing the query statement to obtain target data information, the method comprises:
acquiring configuration information of an interface, calling the interface based on the configuration information and a debugging parameter value corresponding to the interface, and acquiring an interface return result, wherein the configuration information comprises: uniform resource locator, authentication information, request header information and request parameters;
determining a preprocessing script of an interface, and converting an interface return result into a data set by running the preprocessing script, wherein the data set is identified in a two-dimensional table form;
and defining column information of a two-dimensional table in the data set, storing the column information of the two-dimensional table in a database, and using the column information of the two-dimensional table as description information of the interface in the metadata.
3. The method for real-time processing of interface data according to claim 1, wherein the target data information comprises: a target data table;
the searching in the preconfigured metadata based on the target data information and the determining the target interface corresponding to the query statement includes:
and searching in the preset metadata based on the target data table, and determining the target interface corresponding to the query statement according to the description information of the searched target interface.
4. The method for real-time processing of interface data according to claim 2, wherein the target data information includes query parameters;
prior to said invoking said target interface, said method further comprising:
and setting the debugging parameter value of the target interface based on the query parameter.
5. The method for real-time processing of interface data as recited in claim 1, wherein said converting the target interface return result into a target data set comprises:
and determining a target preprocessing script of the target interface, and converting a target interface return result into a target data set by running the target preprocessing script.
6. The method for real-time processing of interface data according to claim 1, wherein the target data information comprises: calculating an expression;
the calculating the target data set to obtain a calculation result includes:
converting the computational expression into a target computational expression corresponding to the target data set;
and calculating the target data set through the target calculation expression to obtain a calculation result.
7. An apparatus for real-time processing of interface data, comprising:
the acquisition module is used for acquiring the query statement of the request interface and analyzing the query statement to obtain target data information;
the searching module is used for searching in preset metadata based on the target data information and determining a target interface corresponding to the query statement;
the calling module is used for calling the target interface, acquiring a target interface return result and converting the target interface return result into a target data set;
and the calculation module is used for calculating the target data set, acquiring a calculation result and taking the calculation result as the result of the query statement.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of a method of real-time processing of interface data as claimed in any one of claims 1 to 6.
9. A non-transitory computer readable storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of a method of real-time processing of interface data as claimed in any one of claims 1 to 6.
10. A computer program product comprising a computer program, wherein the computer program, when executed by a processor, performs the steps of a method of real-time processing of interface data according to any one of claims 1 to 6.
CN202111630424.2A 2021-12-28 2021-12-28 Method and device for processing interface data in real time Pending CN114510501A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111630424.2A CN114510501A (en) 2021-12-28 2021-12-28 Method and device for processing interface data in real time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111630424.2A CN114510501A (en) 2021-12-28 2021-12-28 Method and device for processing interface data in real time

Publications (1)

Publication Number Publication Date
CN114510501A true CN114510501A (en) 2022-05-17

Family

ID=81548597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111630424.2A Pending CN114510501A (en) 2021-12-28 2021-12-28 Method and device for processing interface data in real time

Country Status (1)

Country Link
CN (1) CN114510501A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180096032A1 (en) * 2016-09-30 2018-04-05 Sap Se Metadata application programming interface for ad hoc database queries
CN110399388A (en) * 2019-07-29 2019-11-01 中国工商银行股份有限公司 Data query method, system and equipment
CN111092877A (en) * 2019-12-12 2020-05-01 北京金山云网络技术有限公司 Data processing method and device, electronic equipment and storage medium
CN112182014A (en) * 2020-09-27 2021-01-05 北京金山云网络技术有限公司 Database query method, device, equipment and storage medium
CN112597105A (en) * 2020-12-26 2021-04-02 中国农业银行股份有限公司 Processing method of file associated object, server side equipment and storage medium
CN113360519A (en) * 2020-03-06 2021-09-07 北京京东振世信息技术有限公司 Data processing method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180096032A1 (en) * 2016-09-30 2018-04-05 Sap Se Metadata application programming interface for ad hoc database queries
CN110399388A (en) * 2019-07-29 2019-11-01 中国工商银行股份有限公司 Data query method, system and equipment
CN111092877A (en) * 2019-12-12 2020-05-01 北京金山云网络技术有限公司 Data processing method and device, electronic equipment and storage medium
CN113360519A (en) * 2020-03-06 2021-09-07 北京京东振世信息技术有限公司 Data processing method, device, equipment and storage medium
CN112182014A (en) * 2020-09-27 2021-01-05 北京金山云网络技术有限公司 Database query method, device, equipment and storage medium
CN112597105A (en) * 2020-12-26 2021-04-02 中国农业银行股份有限公司 Processing method of file associated object, server side equipment and storage medium

Similar Documents

Publication Publication Date Title
US20220035600A1 (en) API Specification Generation
US11899681B2 (en) Knowledge graph building method, electronic apparatus and non-transitory computer readable storage medium
JP6626211B2 (en) Method and apparatus for processing short link and short link server
US9544355B2 (en) Methods and apparatus for realizing short URL service
CN110557284B (en) Data aggregation method and device based on client gateway
US9967370B2 (en) OData enabled mobile software applications
CN110888672B (en) Expression engine implementation method and system based on metadata architecture
CN115827084A (en) Data processing method, device, equipment and storage medium
CN115599359A (en) Code generation method, device, equipment and medium
CN109634752B (en) Client request processing method and system based on page gateway
CN111209325A (en) Service system interface identification method, device and storage medium
CN112883088B (en) Data processing method, device, equipment and storage medium
CN110555178B (en) Data proxy method and device
WO2019000897A1 (en) Data acquisition method and device
US12001458B2 (en) Multi-cloud object store access
CN107644103B (en) Method and system for storing traceable information source information
CN114510501A (en) Method and device for processing interface data in real time
CN106648610B (en) Method and device for remotely calling and responding functional interface
CN111339170A (en) Data processing method and device, computer equipment and storage medium
CN114661746A (en) Statement conversion method and device, electronic equipment and storage medium
CN114443990A (en) URL (Uniform resource locator) normalization method and device
CN117176807B (en) Method and device for merging network requests by using request fingerprints
CN110968763A (en) Data processing method and device
WO2023029882A1 (en) Method and apparatus for determining dependency relationship between services, electronic device, and computer readable storage medium
CN111597189B (en) Method, device, equipment and storage medium for acquiring data

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