CN113821254A - Interface data processing method, device, storage medium and equipment - Google Patents

Interface data processing method, device, storage medium and equipment Download PDF

Info

Publication number
CN113821254A
CN113821254A CN202111152431.6A CN202111152431A CN113821254A CN 113821254 A CN113821254 A CN 113821254A CN 202111152431 A CN202111152431 A CN 202111152431A CN 113821254 A CN113821254 A CN 113821254A
Authority
CN
China
Prior art keywords
interface
data processing
interface data
processing device
target
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
CN202111152431.6A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202111152431.6A priority Critical patent/CN113821254A/en
Publication of CN113821254A publication Critical patent/CN113821254A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/542Intercept
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Abstract

The embodiment of the application discloses an interface data processing method, an interface data processing device, a storage medium and equipment. The method comprises the following steps: the interface data processing device acquires an original interface document of the target service application, and detects whether the interface data processing device has an interception authority for intercepting a service request of the target service application to obtain an authority detection result; if the permission detection result indicates that the service request of the target service application has the interception permission, the interface data processing device intercepts the service request data from the target service application and analyzes first interface data from the service request data; the interface data processing device obtains a first interface difference between the first interface data and the original interface document, and updates the original interface document by adopting the first interface difference to obtain a target interface document. By the method and the device, the interface document of the target business application can be updated in time, and the updating cost of the interface document is reduced.

Description

Interface data processing method, device, storage medium and equipment
Technical Field
The present application relates to the field of data processing technologies, and in particular, to an interface data processing method, an interface data processing apparatus, a storage medium, and a device.
Background
The interface document stores interface data required by the service application during service processing, and when the interface data of the service application is changed, the changed interface data needs to be updated and maintained in the interface document.
At present, the updating mode of the interface document is mainly manual updating, time spent by the manual updating is long, mistakes are easy to occur, the interface data in the interface document cannot be updated in time after being changed, and the updating difficulty is increased due to the increase of the interface data of the interface document along with the time migration, so that the updating cost of the interface document is high, and the updating efficiency is low.
Disclosure of Invention
The technical problem to be solved in the embodiments of the present application is to provide an interface data processing method, an apparatus, a storage medium, and a device, which can update an interface document of a target service application in time, improve update efficiency, and reduce update cost of the interface document.
In a first aspect, the present application provides an interface data processing method, including:
the interface data processing device acquires an original interface document of a target service application, wherein the original interface document comprises interface data for service interaction between the target service application and other service applications;
the interface data processing device detects whether the interface data processing device has an interception authority for intercepting the service request of the target service application, and an authority detection result is obtained;
if the permission detection result indicates that the service request of the target service application has the interception permission, the interface data processing device intercepts the service request data from the target service application and analyzes first interface data from the service request data;
the interface data processing device obtains a first interface difference between the first interface data and the original interface document, and updates the original interface document by adopting the first interface difference to obtain a target interface document.
Therefore, the method and the device for updating the interface document of the target service application can detect the change of the interface data of the target service application in time so as to update the original interface document in time according to the change of the interface data, and can also determine the updating mode of the original interface document of the target service application according to the permission detection result, namely different updating modes are adopted by different permission detection results, so that the flexibility of updating the interface document of the target service application can be improved. The method and the device can timely change the original interface document of the target business application, automatically update the original interface document, improve the updating efficiency of the interface document and reduce the updating cost of the interface document.
With reference to the first aspect, in a possible implementation manner, the intercepting, by the interface data processing apparatus, service request data associated with the target service application, and parsing first interface data from the service request data includes:
the interface data processing device monitors the request submitting operation from the target business application in real time;
if the interface data processing device monitors a request submitting operation from the target service application, service request data carried by the request submitting operation is acquired;
the interface data processing device traverses the service request data and acquires first data with a target format from the service request data;
the interface data processing device determines the first data as first interface data.
With reference to the first aspect, in a possible implementation manner, the intercepting, by the interface data processing apparatus, service request data associated with the target service application, and parsing first interface data from the service request data includes:
the interface data processing device monitors the service request submitted by the target user in the target service application in real time;
if the interface data processing device monitors the service request submitted by the target user, acquiring service request data carried by the service request submitted by the target user;
the interface data processing device traverses the service request data and acquires second data with a target format from the service request data;
the interface data processing means determines the second data as first interface data.
With reference to the first aspect, in a possible implementation manner, the method further includes:
if the permission detection result indicates that the interception permission for intercepting the service request of the target service application does not exist, the interface data processing device outputs a permission editing window, and the permission editing window comprises an opening control for opening the interception permission;
and the interface data processing device responds to the starting operation aiming at the starting control and starts the interception permission aiming at the service request of the target service application.
With reference to the first aspect, in a possible implementation manner, the method further includes:
if the permission detection result indicates that the service request of the target service application does not have the interception permission, the interface data processing device acquires service log data of the target service application;
the interface data processing device performs data analysis on the service log data to obtain second interface data in the service log data;
the interface data processing device acquires a second interface difference between the second interface data and the original interface document;
and the interface data processing device adopts the second interface difference to update the original interface document to obtain a target interface document.
With reference to the first aspect, in a possible implementation manner, the acquiring, by the interface data processing apparatus, service log data of the target service application includes:
the interface data processing device acquires a message queue corresponding to a target service application, wherein the message queue is used for storing service log data generated by the target service application;
the interface data processing device obtains the service log data of the target service application from the message queue.
With reference to the first aspect, in a possible implementation manner, the performing, by the interface data processing apparatus, data analysis on the service log data to obtain second interface data in the service log data includes:
the interface data processing device acquires an interface configuration field in an original interface document of the target service application;
the interface data processing device analyzes the service log data based on the interface configuration field to obtain the field value of the interface configuration field;
the interface data processing device combines the interface configuration field and the field value to obtain second interface data.
In a second aspect, the present application provides an interface data processing apparatus, comprising:
the first acquisition module is used for acquiring an original interface document of a target service application by an interface data processing device, wherein the original interface document comprises interface data for service interaction between the target service application and other service applications;
the detection module is used for detecting whether the interface data processing device has an interception authority for intercepting the service request of the target service application or not by the interface data processing device to obtain an authority detection result;
the interface data processing device is used for intercepting service request data from the target service application and analyzing first interface data from the service request data if the permission detection result indicates that the permission detection result has an interception permission for intercepting the service request of the target service application;
and the first updating processing module is used for acquiring a first interface difference between the first interface data and the original interface document by the interface data processing device, and updating the original interface document by adopting the first interface difference to obtain a target interface document.
With reference to the second aspect, in a possible implementation manner, the intercepting module includes:
the first monitoring unit is used for monitoring the request submitting operation from the target business application in real time by the interface data processing device;
a first obtaining unit, configured to obtain service request data carried by a request submission operation if the interface data processing apparatus monitors the request submission operation from the target service application;
a second obtaining unit, configured to traverse the service request data by the interface data processing apparatus, and obtain first data in a target format from the service request data;
a first determining unit for determining the first data as first interface data by the interface data processing device.
With reference to the first aspect, in a possible implementation manner, the intercepting module further includes:
the second monitoring unit is used for monitoring the service request submitted by the target user in the target service application in real time by the interface data processing device;
a third obtaining unit, configured to obtain, if the interface data processing apparatus monitors a service request submitted by the target user, service request data carried in the service request submitted by the target user;
the traversing unit is used for the interface data processing device to traverse the service request data and obtain second data with a target format from the service request data;
a second determining unit for determining the second data as the first interface data by the interface data processing device.
With reference to the first aspect, in a possible implementation manner, the interface data processing apparatus further includes:
the output module is used for outputting an authority editing window by the interface data processing device if the authority detection result indicates that the authority detection result does not have the interception authority for intercepting the service request of the target service application, wherein the authority editing window comprises an opening control for opening the interception authority;
and the starting module is used for responding to the starting operation aiming at the starting control by the interface data processing device and starting the interception permission aiming at the service request of the target service application.
With reference to the first aspect, in a possible implementation manner, the interface data processing apparatus further includes:
a second obtaining module, configured to, if the permission detection result indicates that the service request of the target service application does not have an interception permission to intercept the service request, obtain, by the interface data processing apparatus, service log data of the target service application;
the data analysis module is used for the interface data processing device to carry out data analysis on the service log data to obtain second interface data in the service log data;
a third obtaining module, configured to obtain, by the interface data processing apparatus, a second interface difference between the second interface data and the original interface document;
and the second updating processing module is used for updating the original interface document by the interface data processing device by adopting the second interface difference to obtain a target interface document.
With reference to the first aspect, in a possible implementation manner, the second obtaining module includes:
a fourth obtaining unit, configured to obtain, by the interface data processing apparatus, a message queue corresponding to a target service application, where the message queue is used to store service log data generated by the target service application;
a fifth obtaining unit, configured to obtain, by the interface data processing apparatus, service log data of the target service application from the message queue.
With reference to the first aspect, in a possible implementation manner, the data parsing module includes:
a sixth obtaining unit, configured to obtain, by the interface data processing apparatus, an interface configuration field in an original interface document of the target service application;
the analysis unit is used for analyzing the service log data by the interface data processing device based on the interface configuration field to obtain the field value of the interface configuration field;
and the combination unit is used for combining the interface configuration field and the field value by the interface data processing device to obtain second interface data.
In a third aspect, the present application provides a computer device comprising: a processor and a memory;
the processor is connected with the memory, wherein the memory is used for storing a computer program, and the computer program causes the computer device to execute the method provided by the embodiment of the application when being executed by the processor.
In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, which is adapted to be loaded and executed by a processor, so as to make a computer device having the processor execute the method provided by the embodiments of the present application.
In a fifth aspect, the present application provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the method provided by the embodiment of the application.
In the embodiment of the application, an original interface document of a target service application is obtained through an interface data processing device, the original interface document comprises interface data for performing service interaction between the target service application and other service applications, whether the interface data processing device has an interception authority for intercepting a service request of the target service application is detected, and an authority detection result is obtained. If the permission detection result indicates that the service request of the target service application has the interception permission, the interface data processing device intercepts the service request data from the target service application, analyzes first interface data from the service request data, and obtains a first interface difference between the first interface data and the original interface document. Therefore, the change of the interface data of the target service application can be detected in time, so that the original interface document can be updated in time according to the change of the interface data. And updating the original interface document by adopting the first interface difference to obtain a target interface document. Therefore, the updating mode of the original interface document applied to the target service can be determined according to the permission detection result, namely, different updating modes are adopted for different permission detection results, so that the flexibility of updating the interface document applied to the target service can be improved. The method and the device can timely change the original interface document of the target business application, automatically update the original interface document, improve the updating efficiency of the interface document and reduce the updating cost of the interface document.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a block diagram of an interface data processing system according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of an interface data processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another interface data processing method provided in an embodiment of the present application;
FIG. 4 is a diagram of an interface document update system provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of an interface data processing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an interface data processing system according to an embodiment of the present application. As shown in fig. 1, the interface data processing system may include a server 10 and a cluster of user terminals. The user terminal cluster may comprise one or more user terminals, where the number of user terminals will not be limited. As shown in fig. 1, the system may specifically include a user terminal 100a, a user terminal 100b, user terminals 100c and …, and a user terminal 100 n. As shown in fig. 1, the user terminal 100a, the user terminal 100b, the user terminals 100c, …, and the user terminal 100n may be respectively connected to the server 10 via a network, so that each user terminal may interact with the server 10 via the network.
Wherein, each ue in the ue cluster may include: the intelligent terminal comprises an intelligent terminal with an interface data processing function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, wearable equipment, an intelligent home, head-mounted equipment, a vehicle-mounted terminal and the like. It should be understood that each user terminal in the user terminal cluster shown in fig. 1 may be installed with a target application (i.e., an application client), and when the application client runs in each user terminal, data interaction may be performed with the server 10 shown in fig. 1.
As shown in fig. 1, the server 10 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, middleware service, a domain name service, a security service, a CDN, and a big data and artificial intelligence platform.
For convenience of understanding, in the embodiment of the present application, one user terminal may be selected as a target user terminal from the plurality of user terminals shown in fig. 1, where the target user terminal may include: and the intelligent terminals with interface data processing functions are carried by intelligent mobile phones, tablet computers, notebook computers, desktop computers, intelligent televisions and the like. For example, for convenience of understanding, the user terminal 100a shown in fig. 1 may be taken as a target user terminal in the embodiment of the present application, and the user terminal 100a may be an original interface document of a target service application, where the original interface document includes interface data and interaction rules for service interaction between the target service application and other service applications. After the user terminal 100a obtains the original interface document of the target service application, the user terminal 100a may detect whether the user terminal 100a has an interception authority to intercept the service request of the target service application, so as to obtain an authority detection result. If the permission detection result indicates that the service request of the target service application has the interception permission, the user terminal 100a may intercept the service request data from the target service application and transmit the service request data from the target service application to the server 10. After receiving the service request data sent by the user terminal 100a, the server 10 may parse the first interface data from the service request data. The server 10 may obtain a first interface difference between the first interface data and the original interface document, and update the original interface document with the first interface difference to obtain a target interface document. The server 10 may store the target interface document in the server cloud, and the target user 100a may obtain the target interface document of the target business application in the server 10 cloud in real time. The server 10 may also send the target interface document to the user terminal 100a, so that the user terminal 100a stores the target interface document of the target service application. Therefore, the interface document of the target business application can be updated in real time, and the updating cost of the interface document of the target business application can be reduced.
Referring to fig. 2, fig. 2 is a schematic flowchart of an interface data processing method according to an embodiment of the present disclosure. The interface data processing method may be executed by an interface data processing apparatus, where the interface data processing apparatus may be a computer program (including program code) running in a computer device, for example, the interface data processing apparatus is an application software, and the computer device may be a server (such as the server 10 in fig. 1), or a user terminal (such as any user terminal in the user terminal cluster in fig. 1), or a system composed of a server and a user terminal, which is not limited in this application. As shown in fig. 2, the interface data processing method may include, but is not limited to, the following steps:
s101, the interface data processing device obtains an original interface document of the target service application.
Specifically, the interface data processing device may obtain an original interface document of the target service application, where the original interface document includes interface data for performing service interaction between the target service application and another service application, and also includes an interaction format and an interaction content requirement for performing service interaction between the target service application and another service application. The Interface data (i.e. Application Programming Interface), abbreviated as API, is also called Application program Interface, and includes information such as Interface path, request header, response header, request body, and response body. The interface data can also be used for realizing the calling of the front end and the back end of the target service application, the back end receives legal data transmitted by the front end and returns data meeting the specification according to the specification in the interface data, and the front end transmits the data meeting the specification according to the specification in the interface data and receives the data meeting the specification returned by the back end.
S102, the interface data processing device detects whether the interface data processing device has an interception authority for intercepting the service request of the target service application, and an authority detection result is obtained.
Specifically, the interface data processing apparatus may detect whether the interface data processing apparatus has an interception authority to intercept a service request of a target service application, to obtain an authority detection result, where the authority detection result may indicate that the interface data processing apparatus has an interception authority to intercept the service request of the target service application, or that the interface data processing apparatus does not have an interception authority to intercept the service request of the target service application.
Optionally, the interface data processing apparatus may obtain an application configuration file of the target service application, where an object identifier set of the target object having the interception right is stored in the application configuration file, and the interface data processing apparatus may search whether an object identifier matching the identifier exists in the object identifier set. If the object identifier matched with the identifier of the interface data processing device exists in the object identifier set, it can be determined that the interface data processing device has an interception permission to intercept the service request of the target service application. If the object identifier set does not have the object identifier matched with the identifier of the interface data processing device, it can be determined that the interface data processing device does not have the interception authority to intercept the service request of the target service application.
Optionally, the interface data processing apparatus may determine whether it is embedded in the target service application. If the interface data processing apparatus is embedded in the target service application, that is, the interface data processing apparatus is a computer program (including program code) running in the target service application, it may be determined that the interface data processing apparatus has an interception right to intercept a service request of the target service application. If the interface data processing device is not embedded with the target service application, it may be determined that the interface data processing device does not have an interception authority to intercept the service request of the target service application.
S103, if the permission detection result indicates that the service request of the target service application has the interception permission, the interface data processing device intercepts the service request data from the target service application and analyzes the first interface data from the service request data.
Specifically, if the permission detection result indicates that the interface data processing apparatus has an interception permission to intercept the service request of the target service application, the interface data processing apparatus may intercept service request data from the target service application, and parse the first interface data from the service request data. The service request data from the target service application also comprises other transaction data, so that the service request data can be analyzed, and the first interface data can be extracted.
Optionally, the specific manner in which the interface data processing apparatus intercepts the service request data associated with the target service application, and parses the first interface data from the service request data may include: the interface data processing device monitors the request submitting operation from the target business application in real time. And if the interface data processing device monitors the request submitting operation from the target service application, acquiring service request data carried by the request submitting operation. The interface data processing device traverses the service request data, acquires first data with a target format from the service request data, and determines the first data with the target format as first interface data.
Specifically, the interface data processing apparatus may monitor all request submission operations from the target business application in real time, for example, the request submission operation may be a request operation submitted by a business user, or an interface update request submitted by a programmer. If the interface data processing device monitors a request submitting operation from a target service application, service request data carried by the request submitting operation can be acquired, the interface data processing device can traverse the service request data, acquire first data with a target format from the service request data, and determine the first data with the target format as the first interface data. The first format may include interface fields corresponding to the target service application, such as interface path, request header, response header, request body, response body, and so on. For example, the interface data processing apparatus may extract a value of the interface path from the service request data, obtain a value corresponding to the request header from the service request data, and determine the first interface data by using the interface field and the value of the interface field. For example, the request submitting operation from the target business application may be an interface change request submitted by a programmer, that is, when the programmer needs to update the interface data of the target business application, the interface change request may be directly modified and updated on the interface data of the target business application, and an interface update request is submitted. When the interface data processing device monitors an interface updating request of a programmer, the interface data processing device can acquire service request data carried by the interface updating request, and can directly determine first interface data from the service request data carried by the interface updating request.
Optionally, the specific manner in which the interface data processing apparatus intercepts the service request data associated with the target service application, and parses the first interface data from the service request data may also include: and the interface data processing device monitors the service request submitted by the target user in the target service application in real time. And if the interface data processing device monitors the service request submitted by the target user, acquiring service request data carried by the service request submitted by the target user. The interface data processing device traverses the service request data, acquires second data with a target format from the service request data, and determines the data with the target format as first interface data.
Specifically, the interface data processing device may perform real-time monitoring on a service request submitted by a target user in a target service application. If the interface data processing device monitors a service request submitted by a target user in a target service application, namely the service request is submitted by the target user, service request data carried by the service request submitted by the target user, namely an interface call record, is obtained. The interface data processing device may traverse the service request data, obtain data in the target format from the service data carried in the service request submitted by the target user, and determine the second data in the target format as the first interface data. For example, in a shopping business application, the interface data processing device may monitor in real time business requests submitted by purchasing users in the shopping business application. After the interface data processing device monitors the purchase request submitted by the purchasing user, if the interface data processing device monitors the purchase request of the purchased commodity a submitted by the purchasing user a, the purchase request data carried by the purchase request of the purchased commodity a can be acquired. The interface data processing device may analyze the purchase request data carried by the purchase request to obtain interface data in the purchase request data, such as interface data of an interface path, a request header, a response header, a request body, a response body, and the like. The interface data processing device may remove a specific response value in the interface data in the purchase request data, obtain a structural body that does not change with different service requests in the interface data in the purchase request data, determine the structural body as second data having a format, and determine the second data having a target format as the first interface data. The response value is different according to the service request, for example, when the purchasing user purchases the product a and purchases the product b, the response value is different. Therefore, the actual request submitting operation of the target user in the target business application can be intercepted, the interface data change of the target business application can be obtained in real time, and the interface document of the target business application can be accurately updated. Therefore, the interface document updating method and the device can avoid the problem that the updated interface document is inconsistent with the actually operated interface document due to the fact that interface data carried in the interface updating request submitted by the intercepted programmer is wrong, and can improve the accuracy of the updating of the interface document.
Optionally, the interface data processing apparatus may perform real-time monitoring on the service request data of the service application through an agent function (agent, which refers to a software or hardware entity capable of performing autonomous activity) and a request interception mode, and detect whether there is an interface data change. The Agent function mode can monitor the internal state of the terminal in real time, and after target information is obtained, the target information can be submitted to required management personnel actively according to convention. For example, a programmer may set an Agent function, when it is detected that a service request is submitted by a target service application, the Agent function may intercept the service request and obtain service request data carried by the service request. The request interception mode can monitor the submitting operation in the terminal equipment in real time, and when the submitting operation occurs, the service request data in the submitting operation is acquired, namely the service request data is intercepted. The interface data processing device can intercept a service request from a target service application in a request interception mode, acquire service request data carried by the service request, and analyze the service request data to obtain first interface data.
Optionally, if the permission detection result indicates that the service request of the target service application does not have the interception permission to intercept the service request, the interface data processing apparatus may further output a permission editing window, where the permission editing window includes an opening control for opening the interception permission. And the interface data processing device responds to the starting operation aiming at the starting control and starts the interception permission aiming at the service request of the target service application.
Specifically, if the interface data processing apparatus determines that the permission detection result indicates that the interface data processing apparatus does not have the interception permission for intercepting the service request of the target service application, the interface data processing apparatus may output a permission editing window, where the permission editing window includes an opening control for opening the interception permission for intercepting the service request of the target service application. The administrator can click the opening control in the authority editing window to open the interception authority for the interface data processing device to intercept the service request of the target service application. The interface data processing device can respond to the starting operation of the manager for the starting control, and start the interception permission of the interface data processing device for the service request of the target service application, namely the interface data processing device has the interception permission for intercepting the service request of the target service application.
S104, the interface data processing device obtains a first interface difference between the first interface data and the original interface document, and updates the original interface document by adopting the first interface difference to obtain a target interface document.
Specifically, after the interface data processing device obtains the first interface data, it may determine whether the first interface data belongs to an original interface document, and if the first interface data does not belong to the original interface document (i.e., the first interface data is different from the original interface document), it may be indicated that the first interface data has new interface data, and the interface data in the original interface document is compared with the first interface data to obtain a first interface difference between the first interface data and the original interface document. And updating the original interface document by adopting the first interface difference to obtain a target interface document. If the first interface data belongs to the original interface document (i.e. the first interface data is not different from the original interface document), it indicates that the first interface data does not belong to the new interface data, and the first interface data can be deleted (i.e. removed), thereby reducing the storage space. When the computer device obtains the target interface document, the computer device may determine a document format template corresponding to the target application type according to the target application type of the target service application, and arrange the first interface data by using the document format template, so that the unimportant part of the interface data (such as interface data which is not required to be updated) may be omitted, the arranged first interface data is obtained, and the first difference between the arranged first interface data and the original interface document is obtained. The interface data processing device may preset a document format template for each application type pair, where the document format template includes interface field information required when the corresponding service application performs service processing. The interface data processing device can introduce a metadata editing function into the original interface document, automatically match corresponding metadata (namely corresponding interface data) according to the first difference for updating, and realize that one-time editing is automatic updating.
In the embodiment of the application, an original interface document of a target service application is obtained through an interface data processing device, the original interface document comprises interface data for performing service interaction between the target service application and other service applications, whether the interface data processing device has an interception authority for intercepting a service request of the target service application is detected, and an authority detection result is obtained. If the permission detection result indicates that the service request of the target service application has the interception permission, the interface data processing device intercepts the service request data from the target service application and analyzes the first interface data from the service request data. The interface data processing device acquires the first interface difference between the first interface data and the original interface document, so that the first interface data generated in the target service application can be intercepted in real time, the first difference between the first interface data and the original interface document can be identified, and the situation that manual updating is not timely can be avoided. And updating the original interface document by adopting the first interface difference to obtain a target interface document. Therefore, the updating mode of the original interface document applied to the target service can be determined according to the permission detection result, namely, different updating modes are adopted for different permission detection results, so that the flexibility of updating the interface document applied to the target service can be improved. The method and the device can timely change the original interface document of the target service application, automatically update the original interface document, improve the accuracy of the update of the interface document and reduce the update cost of the interface document.
Referring to fig. 3, fig. 3 is a schematic flowchart of another interface data processing method according to an embodiment of the present disclosure. The interface data processing method may be executed by an interface data processing apparatus, where the interface data processing apparatus may be a computer program (including program code) running in a computer device, for example, the interface data processing apparatus is an application software, and the computer device may be a server (such as the server 10 in fig. 1), or a user terminal (such as any user terminal in the user terminal cluster in fig. 1), or a system composed of a server and a user terminal, which is not limited in this application. As shown in fig. 3, the interface data processing method may include, but is not limited to, the following steps:
s201, an interface data processing device acquires an original interface document of a target service application, wherein the original interface document comprises interface data for service interaction between the target service application and other service applications;
s202, the interface data processing device detects whether the interface data processing device has an interception authority for intercepting the service request of the target service application, and an authority detection result is obtained;
s203, if the permission detection result indicates that the service request of the target service application has the interception permission, the interface data processing device intercepts the service request data from the target service application and analyzes first interface data from the service request data;
s204, the interface data processing device obtains a first interface difference between the first interface data and the original interface document, and updates the original interface document by adopting the first interface difference to obtain a target interface document.
Specifically, the specific contents of steps S201 to S204 in this embodiment of the application may refer to the contents of steps S101 to S104 in fig. 2, and this embodiment of the application is not described herein again.
And S205, if the permission detection result indicates that the service request of the target service application does not have the interception permission, the interface data processing device acquires the service log data of the target service application.
Specifically, if the interface data processing apparatus determines that the permission detection result indicates that the interface data processing apparatus does not have the interception permission for intercepting the service request of the target service application, the service log data of the target service application may be obtained, where the service log data records event response data when the target service application performs service processing, and for example, the application log data may include information such as operation error information, operation warning information, and user behavior.
Optionally, the specific manner of acquiring the service log data of the target service application by the interface data processing device may include: the interface data processing device acquires a message queue corresponding to a target service application, wherein the message queue is used for storing service log data generated by the target service application. The interface data processing device obtains the service log data of the target service application from the message queue.
Specifically, the interface data processing device may obtain a message queue corresponding to the target business application, which is referred to as MQ, and is a communication method of the application program to the application program, and the application program communicates by writing and retrieving data (messages) for the application program from and to the message queue without a dedicated connection to link them. Message passing refers to communication between programs by uploading data in a message queue, rather than communicating with each other by direct invocation. The use of the message queue removes the requirement of simultaneous execution of the receiving and sending application programs, namely, the data uploading party can upload the message to be communicated to the message queue, and the data receiving party can acquire the data uploaded by the data uploading party in the message queue at any time after the data uploading party uploads the message. That is, after the target service application generates the service log data, the service log data may be uploaded to a message queue agreed with the interface data processing device, and the interface data processing device may obtain the application log data uploaded by the target service application from the message queue. The interface data processing device can periodically obtain the service log data of the target service application from the message queue, so that frequent obtaining of the service log data of the target service application can be avoided, and the operation burden can be reduced. Of course, since the interface data processing device cannot intercept the service request of the target service application, but can monitor the service request from the target service application, the interface data processing device can also monitor the number of submission times of the service request from the target service application, and when the number of submission times reaches the target number, the interface data processing device can go to the message queue to obtain the service log data of the target service application. Therefore, the frequency of acquiring the service log data of the target service application can be reduced, the frequency of updating the interface document can be reduced, and the operation burden of the memory can be reduced.
And S206, the interface data processing device performs data analysis on the service log data to obtain second interface data in the service log data.
Specifically, the interface data processing device may perform data analysis on the service log data to obtain second interface data in the service log data.
The specific manner of performing data analysis on the service log data by the optional interface data processing device to obtain the second interface data in the service log data may include: the interface data processing device acquires an interface configuration field in an original interface document of the target service application. The interface data processing device analyzes the service log data based on the interface configuration field to obtain the field value of the interface configuration field. The interface data processing device combines the interface configuration field and the field value to obtain second interface data.
Specifically, the interface data processing apparatus may obtain interface configuration fields in an original interface document of the target service application, such as interface configuration fields of "interface path, request header, response header, request body, and response body", and the optional interface configuration fields may also include non-interface configuration fields. The interface data processing device may parse the service log data based on the interface configuration field to obtain a field value of the interface configuration field, and the interface data processing device may combine the interface field and the field value to obtain the second interface data. For example, after the interface data processing apparatus obtains the service log data, the interface data processing apparatus may analyze the service log data according to interface configuration fields such as an "interface path, a request header, a response header, a request body, and a response body" to obtain a field value corresponding to each interface configuration field, where the field value refers to an interface structure and does not include a response value, that is, the interface path: "request head: and the like. The interface data processing device may combine the interface configuration field and the corresponding field value thereof to obtain the second interface data, that is, the interface data processing device may combine the interface configuration field "interface path" and the corresponding field value thereof to obtain "interface path", and similarly, obtain "request header", thereby obtaining the second interface data.
S207, the interface data processing device acquires a second interface difference between the second interface data and the original interface document.
Specifically, the interface data processing apparatus may compare the second interface data with the original interface document, for example, compare an interface configuration field in the second interface data with an interface configuration field in the original interface document, and compare a field value in the second interface data with a corresponding field value in the original interface document to obtain a second interface difference between the second interface data and the original interface document. For example, the interface path in the second interface data may be compared with the interface path in the original interface document to obtain the difference of the interface paths.
And S208, the interface data processing device adopts the second interface difference to update the original interface document to obtain a target interface document.
Specifically, the interface data processing apparatus may update the original interface document by using the second interface difference to obtain the target interface document. If the interface data processing device obtains the interface path difference between the second interface data and the original interface document, the interface path in the original interface document can be updated according to the difference to obtain an updated interface path, so that the other interface differences are updated to obtain the target interface document.
The interface data processing device updates the original interface document to obtain a target interface document, generates an interface update notification message, outputs the interface update notification message to notify relevant managers that the interface document of the target service application is updated, and outputs the target interface document.
As shown in fig. 4, fig. 4 is a schematic diagram of an interface document updating system provided in this embodiment of the present application, and as shown in fig. 4, the interface document updating system may execute step S41 to obtain whether it has an interception right to intercept a service request of a target service application, so as to obtain a right detection result. If the interface document updating system has the interception authority to intercept the service request of the target service application, step S42 may be executed to intercept the service request data carried by the service request from the target service application in a service request interception manner. The interface document updating system may execute step S43, parsing the service request data to obtain first interface data in the service request data, and obtaining an interface difference between the first interface data and the original interface document of the target service application. If the interface document updating system does not have the interception authority to intercept the service request of the target service application, step S44 may be executed to acquire the service log data of the target service application in a service log data acquisition manner, and the interface document updating system may execute step S45 to parse the service log data of the target service application to obtain second interface data in the service log data. The interface document update system may perform step S46 to obtain an interface difference between the second interface data and the original interface document. After the interface document updating system obtains the interface difference, step S47 may be executed to update the original interface document with the interface difference to obtain the target interface document. After the interface document updating system generates the target interface document, the interface data (such as an interface path, a request header, a response header, a request body and a response body) in the target interface document can be stored, and interface simulation data is generated so that the subsequent front end and the subsequent back end can perform service processing for calling.
In the embodiment of the application, an original interface document of a target service application is obtained through an interface data processing device, the original interface document comprises interface data for performing service interaction between the target service application and other service applications, whether the interface data processing device has an interception authority for intercepting a service request of the target service application is detected, and an authority detection result is obtained. If the permission detection result indicates that the service request of the target service application has the interception permission, the interface data processing device intercepts the service request data from the target service application and analyzes the first interface data from the service request data. The interface data processing device acquires the first interface difference between the first interface data and the original interface document, so that the first interface data generated in the target service application can be intercepted in real time, the first difference between the first interface data and the original interface document can be identified, and the situation that manual updating is not timely can be avoided. And updating the original interface document by adopting the first interface difference to obtain a target interface document. And if the permission detection result indicates that the service request of the target service application does not have the interception permission, the interface data processing device acquires the service log data of the target service application. The interface data processing device analyzes the data of the service log data to obtain second interface data in the service log data, obtains a second interface difference between the second interface data and the original interface document, and updates the original interface document by adopting the second interface difference to obtain a target interface document. Therefore, the updating mode of the original interface document applied to the target service can be determined according to the permission detection result, namely, different updating modes are adopted for different permission detection results, so that the flexibility of updating the interface document applied to the target service can be improved. The method and the device can timely change the original interface document of the target service application, automatically update the original interface document, improve the accuracy of the update of the interface document and reduce the update cost of the interface document.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an interface data processing apparatus according to an embodiment of the present disclosure. The interface data processing means may be a computer program (including program code) running on a computer device, for example, the interface data processing means is an application software; the interface data processing device can be used for executing corresponding steps in the interface data processing method provided by the embodiment of the application. As shown in fig. 5, the interface data processing apparatus may include: the system comprises a first acquisition module 11, a detection module 12, an interception module 13, a first update processing module 14, an output module 15, a starting module 16, a second acquisition module 17, a data analysis module 18, a third acquisition module 19 and a second update processing module 20.
A first obtaining module 11, configured to obtain, by an interface data processing apparatus, an original interface document of a target service application, where the original interface document includes interface data for performing service interaction between the target service application and another service application;
a detecting module 12, configured to detect, by the interface data processing apparatus, whether the interface data processing apparatus has an interception permission to intercept the service request of the target service application, so as to obtain a permission detection result;
an interception module 13, configured to intercept, if the permission detection result indicates that there is an interception permission to intercept the service request of the target service application, the interface data processing apparatus intercepts service request data from the target service application, and parses first interface data from the service request data;
the first update processing module 14 is configured to obtain a first interface difference between the first interface data and the original interface document by the interface data processing device, and update the original interface document by using the first interface difference to obtain a target interface document.
With reference to the second aspect, in a possible implementation manner, the intercepting module 13 includes:
a first monitoring unit 1301, configured to monitor, in real time, a request submission operation from the target service application by the interface data processing apparatus;
a first obtaining unit 1302, configured to obtain service request data carried by a request submitting operation if the interface data processing apparatus monitors the request submitting operation from the target service application;
a second obtaining unit 1303, configured to traverse the service request data by the interface data processing apparatus, and obtain first data in a target format from the service request data;
a first determining unit 1304, configured to determine the first data as first interface data by the interface data processing apparatus.
With reference to the first aspect, in a possible implementation manner, the intercepting module 13 further includes:
a second monitoring unit 1305, configured to monitor, by the interface data processing apparatus, a service request submitted by a target user in the target service application in real time;
a third obtaining unit 1306, configured to obtain, if the interface data processing apparatus monitors that the service request is submitted by the target user, service request data carried in the service request submitted by the target user;
a traversing unit 1307, configured to traverse the service request data by the interface data processing apparatus, and obtain second data with a target format from the service request data;
a second determining unit 1308, configured to determine the second data as the first interface data by the interface data processing apparatus.
With reference to the first aspect, in a possible implementation manner, the interface data processing apparatus further includes:
an output module 15, configured to output, if the permission detection result indicates that the permission detection result does not have an interception permission for intercepting the service request of the target service application, a permission editing window including an opening control for opening the interception permission by the interface data processing apparatus;
and the starting module 16 is used for responding to the starting operation aiming at the starting control by the interface data processing device and starting the interception permission aiming at the service request of the target service application.
With reference to the first aspect, in a possible implementation manner, the interface data processing apparatus further includes:
a second obtaining module 17, configured to, if the permission detection result indicates that the service request of the target service application does not have an interception permission to intercept the service request of the target service application, obtain, by the interface data processing apparatus, service log data of the target service application;
a data analysis module 18, configured to perform data analysis on the service log data by the interface data processing device to obtain second interface data in the service log data;
a third obtaining module 19, configured to obtain, by the interface data processing apparatus, a second interface difference between the second interface data and the original interface document;
and a second update processing module 20, configured to update the original interface document by using the second interface difference by the interface data processing apparatus, so as to obtain a target interface document.
With reference to the first aspect, in a possible implementation manner, the second obtaining module 17 includes:
a fourth obtaining unit 1701, configured to obtain, by the interface data processing apparatus, a message queue corresponding to a target service application, where the message queue is used to store service log data generated by the target service application;
a fifth obtaining unit 1702, configured to obtain, by the interface data processing apparatus, the service log data of the target service application from the message queue.
With reference to the first aspect, in a possible implementation manner, the data parsing module 18 includes:
a sixth obtaining unit 1801, configured to obtain, by the interface data processing apparatus, an interface configuration field in an original interface document of the target service application;
an analyzing unit 1802, configured to analyze, by the interface data processing apparatus, the service log data based on the interface configuration field to obtain a field value of the interface configuration field;
a combining unit 1803, configured to combine the interface configuration field and the field value by the interface data processing apparatus to obtain second interface data.
According to an embodiment of the present application, each module in the interface data processing apparatus shown in fig. 5 may be respectively or entirely combined into one or several units to form the unit, or some unit(s) may be further split into multiple sub-units with smaller functions, which may implement the same operation without affecting implementation of technical effects of the embodiment of the present application. The modules are divided based on logic functions, and in practical application, the functions of one module can be realized by a plurality of units, or the functions of a plurality of modules can be realized by one unit. In other embodiments of the present application, the interface data processing apparatus may also include other units, and in practical applications, these functions may also be implemented by being assisted by other units, and may be implemented by cooperation of a plurality of units.
In the embodiment of the application, an original interface document of a target service application is obtained through an interface data processing device, the original interface document comprises interface data for performing service interaction between the target service application and other service applications, whether the interface data processing device has an interception authority for intercepting a service request of the target service application is detected, and an authority detection result is obtained. If the permission detection result indicates that the service request of the target service application has the interception permission, the interface data processing device intercepts the service request data from the target service application and analyzes the first interface data from the service request data. The interface data processing device acquires the first interface difference between the first interface data and the original interface document, so that the first interface data generated in the target service application can be intercepted in real time, the first difference between the first interface data and the original interface document can be identified, and the situation that manual updating is not timely can be avoided. And updating the original interface document by adopting the first interface difference to obtain a target interface document. And if the permission detection result indicates that the service request of the target service application does not have the interception permission, the interface data processing device acquires the service log data of the target service application. The interface data processing device analyzes the data of the service log data to obtain second interface data in the service log data, obtains a second interface difference between the second interface data and the original interface document, and updates the original interface document by adopting the second interface difference to obtain a target interface document. Therefore, the updating mode of the original interface document applied to the target service can be determined according to the permission detection result, namely, different updating modes are adopted for different permission detection results, so that the flexibility of updating the interface document applied to the target service can be improved. The method and the device can timely change the original interface document of the target service application, automatically update the original interface document, improve the accuracy of the update of the interface document and reduce the update cost of the interface document.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 6, the computer apparatus 1000 may include: the processor 1001, the network interface 1004, and the memory 1005, and the computer apparatus 1000 may further include: a target user interface 1003, and at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The target user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the selectable target user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 6, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a target user interface module, and a device control application program.
In the computer device 1000 shown in fig. 6, the network interface 1004 may provide a network communication function; the target user interface 1003 is an interface for providing input to a target user; and the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
the interface data processing device acquires an original interface document of a target service application, wherein the original interface document comprises interface data for service interaction between the target service application and other service applications;
the interface data processing device detects whether the interface data processing device has an interception authority for intercepting the service request of the target service application, and an authority detection result is obtained;
if the permission detection result indicates that the service request of the target service application has the interception permission, the interface data processing device intercepts the service request data from the target service application and analyzes first interface data from the service request data;
the interface data processing device obtains a first interface difference between the first interface data and the original interface document, and updates the original interface document by adopting the first interface difference to obtain a target interface document.
It should be understood that the computer device 1000 described in this embodiment of the present application may perform the description of the interface data processing method in the embodiment corresponding to fig. 2 or fig. 3, and may also perform the description of the interface data processing apparatus in the embodiment corresponding to fig. 5, which is not described herein again.
In the embodiment of the application, an original interface document of a target service application is obtained through an interface data processing device, the original interface document comprises interface data for performing service interaction between the target service application and other service applications, whether the interface data processing device has an interception authority for intercepting a service request of the target service application is detected, and an authority detection result is obtained. If the permission detection result indicates that the service request of the target service application has the interception permission, the interface data processing device intercepts the service request data from the target service application and analyzes the first interface data from the service request data. The interface data processing device acquires the first interface difference between the first interface data and the original interface document, so that the first interface data generated in the target service application can be intercepted in real time, the first difference between the first interface data and the original interface document can be identified, and the situation that manual updating is not timely can be avoided. And updating the original interface document by adopting the first interface difference to obtain a target interface document. And if the permission detection result indicates that the service request of the target service application does not have the interception permission, the interface data processing device acquires the service log data of the target service application. The interface data processing device analyzes the data of the service log data to obtain second interface data in the service log data, obtains a second interface difference between the second interface data and the original interface document, and updates the original interface document by adopting the second interface difference to obtain a target interface document. Therefore, the updating mode of the original interface document applied to the target service can be determined according to the permission detection result, namely, different updating modes are adopted for different permission detection results, so that the flexibility of updating the interface document applied to the target service can be improved. The method and the device can timely change the original interface document of the target service application, automatically update the original interface document, improve the accuracy of the update of the interface document and reduce the update cost of the interface document.
Further, here, it is to be noted that: an embodiment of the present application further provides a computer-readable storage medium, where a computer program executed by the aforementioned interface data processing apparatus is stored in the computer-readable storage medium, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the interface data processing method in the embodiment corresponding to fig. 2 or fig. 3 can be performed, so that details are not repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application. As an example, the program instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network, which may constitute a block chain system.
Further, it should be noted that: embodiments of the present application also provide a computer program product or computer program, which may include computer instructions, which may be stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor can execute the computer instruction, so that the computer device executes the description of the interface data processing method in the embodiment corresponding to fig. 2 or fig. 3, which will not be described herein again. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in the embodiments of the computer program product or the computer program referred to in the present application, reference is made to the description of the embodiments of the method of the present application.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device can be merged, divided and deleted according to actual needs.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (10)

1. An interface data processing method, comprising:
an interface data processing device acquires an original interface document of a target service application, wherein the original interface document comprises interface data for service interaction between the target service application and other service applications;
the interface data processing device detects whether the interface data processing device has an interception authority for intercepting the service request of the target service application, and an authority detection result is obtained;
if the permission detection result indicates that the service request of the target service application has the interception permission, the interface data processing device intercepts the service request data from the target service application and analyzes first interface data from the service request data;
and the interface data processing device acquires a first interface difference between the first interface data and the original interface document, and updates the original interface document by adopting the first interface difference to obtain a target interface document.
2. The method of claim 1, wherein the interface data processing device intercepts service request data associated with the target service application and parses first interface data from the service request data, and comprises:
the interface data processing device monitors request submission operation from the target business application in real time;
if the interface data processing device monitors a request submitting operation from the target service application, service request data carried by the request submitting operation is acquired;
the interface data processing device traverses the service request data and acquires first data with a target format from the service request data;
the interface data processing means determines the first data as first interface data.
3. The method of claim 1, wherein the interface data processing device intercepts service request data associated with the target service application and parses first interface data from the service request data, and comprises:
the interface data processing device monitors the service request submitted by the target user in the target service application in real time;
if the interface data processing device monitors the service request submitted by the target user, acquiring service request data carried by the service request submitted by the target user;
the interface data processing device traverses the service request data and acquires second data with a target format from the service request data;
the interface data processing means determines the second data as first interface data.
4. The method according to any one of claims 1-3, further comprising:
if the permission detection result indicates that the interception permission for intercepting the service request of the target service application does not exist, the interface data processing device outputs a permission editing window, wherein the permission editing window comprises an opening control for opening the interception permission;
and the interface data processing device responds to the starting operation aiming at the starting control and starts the interception permission aiming at the service request of the target service application.
5. The method according to any one of claims 1-3, further comprising:
if the permission detection result indicates that the service request of the target service application does not have the interception permission, the interface data processing device acquires service log data of the target service application;
the interface data processing device performs data analysis on the service log data to obtain second interface data in the service log data;
the interface data processing device acquires a second interface difference between the second interface data and the original interface document;
and the interface data processing device updates the original interface document by adopting the second interface difference to obtain a target interface document.
6. The method of claim 5, wherein the interface data processing device obtaining the service log data of the target service application comprises:
the interface data processing device acquires a message queue corresponding to a target service application, wherein the message queue is used for storing service log data generated by the target service application;
and the interface data processing device acquires the service log data of the target service application from the message queue.
7. The method of claim 5, wherein the interface data processing device performs data parsing on the service log data to obtain second interface data in the service log data, and the method comprises:
the interface data processing device acquires an interface configuration field in an original interface document of the target service application;
the interface data processing device analyzes the service log data based on the interface configuration field to obtain a field value of the interface configuration field;
and the interface data processing device combines the interface configuration field and the field value to obtain second interface data.
8. An interface data processing apparatus, comprising:
the first acquisition module is used for acquiring an original interface document of a target service application by an interface data processing device, wherein the original interface document comprises interface data for service interaction between the target service application and other service applications;
the detection module is used for detecting whether the interface data processing device has an interception authority for intercepting the service request of the target service application or not by the interface data processing device to obtain an authority detection result;
the interface data processing device is used for intercepting service request data from the target service application and analyzing first interface data from the service request data if the permission detection result indicates that the permission detection result has an interception permission for intercepting the service request of the target service application;
and the first updating processing module is used for acquiring a first interface difference between the first interface data and the original interface document by the interface data processing device, and updating the original interface document by adopting the first interface difference to obtain a target interface document.
9. A computer device, comprising: a processor and a memory;
the processor is coupled to a memory, wherein the memory is configured to store a computer program, and the processor is configured to invoke the computer program to cause the computer device to perform the method of any of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored which is adapted to be loaded and executed by a processor to cause a computer device having said processor to carry out the method of any one of claims 1 to 7.
CN202111152431.6A 2021-09-29 2021-09-29 Interface data processing method, device, storage medium and equipment Pending CN113821254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111152431.6A CN113821254A (en) 2021-09-29 2021-09-29 Interface data processing method, device, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111152431.6A CN113821254A (en) 2021-09-29 2021-09-29 Interface data processing method, device, storage medium and equipment

Publications (1)

Publication Number Publication Date
CN113821254A true CN113821254A (en) 2021-12-21

Family

ID=78921531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111152431.6A Pending CN113821254A (en) 2021-09-29 2021-09-29 Interface data processing method, device, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN113821254A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115062084A (en) * 2022-08-19 2022-09-16 中关村科学城城市大脑股份有限公司 Method and device for constructing API (application program interface) based on database metadata
CN116069840A (en) * 2022-11-30 2023-05-05 湖南长银五八消费金融股份有限公司 Interface replay method, device and computer equipment in service reconfiguration migration

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190034199A1 (en) * 2017-07-27 2019-01-31 Tibco Software Inc. Auto-generation of application programming interface (api) documentation via implementation-neutral analysis of api traffic
CN110244940A (en) * 2019-06-12 2019-09-17 四川长虹电器股份有限公司 Optimize the method and web front-end project structure of web application system development
CN111796809A (en) * 2020-06-29 2020-10-20 平安普惠企业管理有限公司 Interface document generation method and device, electronic equipment and medium
CN112015468A (en) * 2020-09-25 2020-12-01 北京百度网讯科技有限公司 Interface document processing method and device, electronic equipment and storage medium
CN112346976A (en) * 2020-11-09 2021-02-09 深圳市安软科技股份有限公司 Interface document generation method, device and system based on webpage and computer equipment
CN112988872A (en) * 2021-03-31 2021-06-18 北京大米科技有限公司 Interface document management method and device, storage medium and electronic equipment
CN113296752A (en) * 2021-05-25 2021-08-24 平安养老保险股份有限公司 Method, system, device and storage medium for generating API document

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190034199A1 (en) * 2017-07-27 2019-01-31 Tibco Software Inc. Auto-generation of application programming interface (api) documentation via implementation-neutral analysis of api traffic
CN110244940A (en) * 2019-06-12 2019-09-17 四川长虹电器股份有限公司 Optimize the method and web front-end project structure of web application system development
CN111796809A (en) * 2020-06-29 2020-10-20 平安普惠企业管理有限公司 Interface document generation method and device, electronic equipment and medium
CN112015468A (en) * 2020-09-25 2020-12-01 北京百度网讯科技有限公司 Interface document processing method and device, electronic equipment and storage medium
CN112346976A (en) * 2020-11-09 2021-02-09 深圳市安软科技股份有限公司 Interface document generation method, device and system based on webpage and computer equipment
CN112988872A (en) * 2021-03-31 2021-06-18 北京大米科技有限公司 Interface document management method and device, storage medium and electronic equipment
CN113296752A (en) * 2021-05-25 2021-08-24 平安养老保险股份有限公司 Method, system, device and storage medium for generating API document

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115062084A (en) * 2022-08-19 2022-09-16 中关村科学城城市大脑股份有限公司 Method and device for constructing API (application program interface) based on database metadata
CN115062084B (en) * 2022-08-19 2022-11-04 中关村科学城城市大脑股份有限公司 Method and device for constructing API (application programming interface) based on database metadata
CN116069840A (en) * 2022-11-30 2023-05-05 湖南长银五八消费金融股份有限公司 Interface replay method, device and computer equipment in service reconfiguration migration

Similar Documents

Publication Publication Date Title
US11588922B2 (en) Capturing and replaying application sessions using resource files
US11206451B2 (en) Information interception processing method, terminal, and computer storage medium
CN108897691B (en) Data processing method, device, server and medium based on interface simulation service
CN108052334B (en) Page jump method, device, computer equipment and storage medium
US10467316B2 (en) Systems and methods for web analytics testing and web development
JP2022529967A (en) Extracting data from the blockchain network
US10216527B2 (en) Automated software configuration management
CN110688598B (en) Service parameter acquisition method and device, computer equipment and storage medium
WO2017131774A1 (en) Log event summarization for distributed server system
US10152400B2 (en) Method and system for dynamically unblocking customers in critical workflows by pushing community contributed solutions just-in-time when an error is encountered
US20160012074A1 (en) System and method for providing contextual analytics data
CN113821254A (en) Interface data processing method, device, storage medium and equipment
US10489179B1 (en) Virtual machine instance data aggregation based on work definition metadata
CN112017007A (en) User behavior data processing method and device, computer equipment and storage medium
US10009220B2 (en) In-vehicle information system and information processing method thereof
US20170220218A1 (en) Automatic Generation of Regular Expression Based on Log Line Data
CN110874307A (en) Event buried point collecting and reporting method and device
US11907699B2 (en) System and method for implementing self-driven change detection release automation
US20240000192A1 (en) Methods, systems and computer readable media for providing a user interface for html sap applications
CN113191889A (en) Wind control configuration method, configuration system, electronic device and readable storage medium
US20230267430A1 (en) Data processing method and device, and computer-readable storage medium
CN109981738B (en) Cloud server suitable for application of narrow-band Internet of things
CN113778709A (en) Interface calling method, device, server and storage medium
CN113032647A (en) Data analysis system
CN114428723A (en) Test system, system test method, related device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination