Method and apparatus for detecting api interface based on data comparison

By automating the acquisition and evaluation of API interface data across multiple applications, the problem of lagging interface data comparison has been solved, achieving efficient, accurate, and convenient interface stability assessment.

CN117290231BActive Publication Date: 2026-11-27BEIJING QINING TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311278918.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2026-11-27
Estimated Expiration
2043-09-28

AI Technical Summary

Technical Problem

The existing interface data comparison method is outdated, which affects the timeliness and convenience of detecting whether the interface is stable, resulting in high manpower and time costs and easy errors.

Method used

The system obtains the interface data set of the target API interface through the first application, the second application, and the third application, and evaluates the results by comparing them according to preset constraints, thereby automatically determining the stability of the interface.

Benefits of technology

It improves the timeliness and convenience of interface data comparison, reduces labor and time costs, and enhances the accuracy and reliability of interface stability assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117290231B_ABST
    Figure CN117290231B_ABST
Patent Text Reader

Abstract

The application provides an API interface detection method and device based on data comparison. The method comprises the following steps: obtaining an interface data comparison instruction; in response to the interface data comparison instruction, obtaining a first interface data set, a second interface data set and a third interface data set related to a target API interface through a first application, a second application and a third application respectively; performing data comparison on at least two pairs of interface data sets in the first interface data set, the second interface data set and the third interface data set respectively to obtain at least two comparison results; and if the at least two comparison results satisfy a preset limit condition, determining that the target interface is a valid interface. The technical scheme of the application improves the accuracy of interface stability judgment through data comparison.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This application relates to the field of data processing technology, and in particular to an API interface detection method and apparatus based on data comparison. [Background Technology]

[0002] Data transmission over a network often requires the use of APIs (Application Programming Interfaces). Simply put, an API, or interface, is a predefined function that provides visitors, including applications and developers, with the ability to access a specific object. Therefore, a stable interface is fundamental to successful data transmission.

[0003] However, in real-world scenarios, the stability of an interface can be affected by various factors such as network environment and hardware performance. Once an interface malfunctions, it will impact data transmission performance.

[0004] In response, related technologies suggest using desktop software such as Betond Compare or KDiff3 to display two sets of transmitted data from the interface under the same conditions in two windows on the same screen, and to highlight the inconsistencies between the two.

[0005] However, while this method can visually demonstrate the differences between two sets of transmitted data under the same conditions, it is only suitable for comparing small amounts of data. Once the number of interfaces is large, or the amount of data involved is enormous, developers need to browse through a large amount of data displayed in two windows simultaneously. Although inconsistent data is highlighted in the windows, due to the general differences and diversity of the data, manual analysis is still required to reach a final conclusion. This consumes significant manpower and time, and is prone to errors. This lagging method of comparing interface data affects the timeliness and convenience of verifying the stability of the testing interface, thus further impacting the quality of data transmission.

[0006] Therefore, improving the timeliness and convenience of interface data comparison has become an urgent technical problem to be solved. [Summary of the Invention]

[0007] This application provides an API interface detection method and apparatus based on data comparison, aiming to solve the technical problem in related technologies where lagging interface data comparison methods affect the timeliness and convenience of detecting interface stability.

[0008] In a first aspect, embodiments of this application provide an API interface detection method based on data comparison, comprising: obtaining an interface data comparison instruction, wherein the interface data comparison instruction indicates a target API interface for obtaining interface data to be compared; in response to the interface data comparison instruction, obtaining a first interface data set, a second interface data set, and a third interface data set related to the target API interface through a first application, a second application, and a third application, respectively; performing data comparison on at least two pairs of interface data sets in the first interface data set, the second interface data set, and the third interface data set to obtain at least two comparison results; and determining the target API interface as a valid interface if the at least two comparison results meet preset constraints, wherein the preset constraints include: the number of consistent results in the at least two comparison results reaching a first specified number and / or the proportion of consistent results in the at least two comparison results reaching a first specified proportion.

[0009] In one embodiment of this application, optionally, the step of obtaining the first interface data set, the second interface data set, and the third interface data set related to the target API interface through the first application, the second application, and the third application respectively includes: obtaining all available data through the target API interface through the first application, the second application, and the third application respectively to obtain the first interface data set, the second interface data set, and the third interface data set.

[0010] In one embodiment of this application, optionally, the step of obtaining a first interface data set, a second interface data set, and a third interface data set related to the target API interface through a first application, a second application, and a third application respectively includes: obtaining all available data related to the target API interface generated during a first specified time period through the first application, as the first interface data set; obtaining all available data related to the target API interface generated during a second specified time period through the second application, as the second interface data set; and obtaining all available data related to the target API interface generated during a third specified time period through the third application, as the third interface data set.

[0011] In one embodiment of this application, optionally, the step of comparing at least two pairs of interface data sets among the first interface data set, the second interface data set, and the third interface data set to obtain at least two comparison results includes: comparing the first interface data set, the second interface data set, and the third interface data set pairwise to obtain three comparison results.

[0012] In one embodiment of this application, optionally, the step of obtaining a first interface data set, a second interface data set, and a third interface data set related to the target API interface through a first application, a second application, and a third application respectively includes: obtaining all available data related to the target API interface through the first application as the first interface data set; obtaining a second specified data among all available data related to the target API interface through the second application as the second interface data set; and obtaining a third specified data among all available data related to the target API interface through the third application as the third interface data set.

[0013] Optionally, in one embodiment of this application, the step of obtaining a first interface data set, a second interface data set, and a third interface data set related to the target API interface through a first application, a second application, and a third application respectively includes: obtaining all available data related to the target API interface generated during a first specified time period through the first application, as the first interface data set; obtaining second specified data from the all available data related to the target API interface generated during a second specified time period through the second application, as the second interface data set; and obtaining third specified data from the all available data related to the target API interface generated during the second specified time period through the third application, as the third interface data set.

[0014] In one embodiment of this application, optionally, the step of comparing data in each of at least two pairs of interface data sets among the first interface data set, the second interface data set, and the third interface data set to obtain at least two comparison results includes: determining a first specified data in the first interface data set that is associated with the second specified data, and determining whether the first specified data matches the second specified data, wherein if the first specified data matches the second specified data, the comparison result of the first interface data set and the second interface data set is determined to be consistent; determining a fourth specified data in the first interface data set that is associated with the third specified data, and determining whether the fourth specified data matches the third specified data, wherein if the fourth specified data matches the third specified data, the comparison result of the first interface data set and the third interface data set is determined to be consistent; determining a fifth specified data in the second interface data set that is associated with the third specified data, and determining whether the fifth specified data matches the third specified data, wherein if the fifth specified data matches the third specified data, the comparison result of the second interface data set and the third interface data set is determined to be consistent.

[0015] Optionally, in one embodiment of this application, the method further includes: if the at least two comparison results do not meet the preset restriction conditions, determining the target API interface as a potential vulnerability interface; or if the at least two comparison results do not meet the preset restriction conditions, for the comparison results that do not meet the preset restriction conditions, determining two target applications in the first application, the second application, and the third application for obtaining a pair of interface data sets that generate the comparison results; determining inconsistent data in the comparison results that do not meet the preset restriction conditions; obtaining retest data associated with the inconsistent data through the target API interface via the two target applications respectively; comparing the retest data from the two target applications to obtain a review result; if the review result meets the preset restriction conditions, determining the target API interface as a valid interface; otherwise, determining the target API interface as a potential vulnerability interface.

[0016] In one embodiment of this application, optionally, the preset limiting conditions further include: the comparison result of the specified interface data set obtained by the specified application in the second application and the third application with the first interface data set is consistent; or, the comparison result of the specified interface data set obtained by the specified application in the second application and the third application with the first interface data set is consistent, and the number of the specified applications reaches a second specified number; or the comparison result of the specified interface data set obtained by the specified application in the second application and the third application with the first interface data set is consistent, and the proportion of the specified application in the total number of the second application and the third application reaches a second specified proportion; or the comparison result of the specified interface data set obtained by the specified application in the second application and the third application with the first interface data set is consistent, and the proportion of the specified application in the total number of the first application, the second application and the third application reaches a third specified proportion.

[0017] Secondly, embodiments of this application provide an API interface detection device based on data comparison, comprising: a comparison instruction acquisition unit, configured to acquire an interface data comparison instruction, wherein the interface data comparison instruction indicates a target API interface for acquiring interface data to be compared; an interface data acquisition unit, configured to, in response to the interface data comparison instruction, acquire a first interface data set, a second interface data set, and a third interface data set related to the target API interface through a first application, a second application, and a third application, respectively; an interface data comparison unit, configured to perform data comparison on at least two pairs of interface data sets among the first interface data set, the second interface data set, and the third interface data set, and obtain at least two comparison results; and an interface classification unit, configured to determine the target API interface as a valid interface if the at least two comparison results meet preset constraints, wherein the preset constraints include: the number of consistent results among the at least two comparison results reaching a first specified number and / or the proportion of consistent results among the at least two comparison results reaching a first specified proportion.

[0018] Optionally, in one embodiment of this application, the interface data acquisition unit is configured to: acquire all available data through the target API interface via the first application, the second application, and the third application respectively, to obtain the first interface data set, the second interface data set, and the third interface data set.

[0019] Optionally, in one embodiment of this application, the interface data acquisition unit is configured to: acquire all available data related to the target API interface generated during a first specified time period through the first application, as the first interface data set; acquire all available data related to the target API interface generated during a second specified time period through the second application, as the second interface data set; and acquire all available data related to the target API interface generated during a third specified time period through the third application, as the third interface data set.

[0020] In one embodiment of this application, optionally, the interface data comparison unit is used to: compare the first interface data set, the second interface data set, and the third interface data set in pairs to obtain three comparison results.

[0021] Optionally, in one embodiment of this application, the interface data acquisition unit is configured to: acquire all available data related to the target API interface through the first application, as the first interface data set; acquire second specified data from the all available data related to the target API interface through the second application, as the second interface data set; and acquire third specified data from the all available data related to the target API interface through the third application, as the third interface data set.

[0022] Optionally, in one embodiment of this application, the interface data acquisition unit is configured to: acquire all available data related to the target API interface generated during a first specified time period through the first application, as the first interface data set; acquire second specified data from the all available data related to the target API interface generated during a second specified time period through the second application, as the second interface data set; and acquire third specified data from the all available data related to the target API interface generated during the second specified time period through the third application, as the third interface data set.

[0023] In one embodiment of this application, optionally, the interface data comparison unit is further configured to: determine a first specified data associated with the second specified data in the first interface data set, and determine whether the first specified data matches the second specified data, wherein if the first specified data matches the second specified data, the comparison result between the first interface data set and the second interface data set is determined to be consistent; and determine a fourth specified data associated with the third specified data in the first interface data set, and determine whether the fourth specified data matches the third specified data, wherein if the fourth specified data matches the third specified data, the comparison result between the first interface data set and the third interface data set is determined to be consistent; determine a fifth specified data associated with the third specified data in the second interface data set, and determine whether the fifth specified data matches the third specified data, wherein if the fifth specified data matches the third specified data, the comparison result between the second interface data set and the third interface data set is determined to be consistent.

[0024] Optionally, in one embodiment of this application, the API interface detection device based on data comparison further includes: a first execution unit, configured to determine the target API interface as a potential vulnerability if the at least two comparison results do not meet the preset restriction conditions; a second execution unit, configured to, if the at least two comparison results do not meet the preset restriction conditions, for comparison results that do not meet the preset restriction conditions, determine two target applications in the first application, the second application, and the third application for obtaining a pair of interface data sets that generate the comparison results; determine inconsistent data in the comparison results that do not meet the preset restriction conditions; obtain retest data associated with the inconsistent data through the target API interface via the two target applications respectively; compare the retest data from the two target applications to obtain a verification result; if the verification result meets the preset restriction conditions, determine the target API interface as a valid interface; otherwise, determine the target API interface as a potential vulnerability interface.

[0025] In one embodiment of this application, optionally, the preset limiting conditions further include: the comparison result of the specified interface data set obtained by the specified application in the second application and the third application with the first interface data set is consistent; or, the comparison result of the specified interface data set obtained by the specified application in the second application and the third application with the first interface data set is consistent, and the number of the specified applications reaches a second specified number; or the comparison result of the specified interface data set obtained by the specified application in the second application and the third application with the first interface data set is consistent, and the proportion of the specified application in the total number of the second application and the third application reaches a second specified proportion; or the comparison result of the specified interface data set obtained by the specified application in the second application and the third application with the first interface data set is consistent, and the proportion of the specified application in the total number of the first application, the second application and the third application reaches a third specified proportion.

[0026] Thirdly, embodiments of this application provide a computer device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being configured to perform the method described in the first aspect above.

[0027] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions for performing the method described in the first aspect above.

[0028] The above technical solution addresses the technical problem of lagging interface data comparison methods affecting the timeliness and convenience of detecting interface stability. It automatically acquires data from the target API interface through at least three applications for comparison, and then uses preset constraints to further evaluate the comparison results. This improves the automation level of interface data comparison and stability judgment, reducing manual and time costs. In particular, the introduction of preset constraints, which consider data fault tolerance, effectively improves the reliability of data comparison results, avoiding misjudgments of interface stability due to minor data differences that are insufficient to affect interface stability or errors generated during the data comparison process, greatly improving the accuracy of interface stability judgment. In practical applications, this technical solution can automatically and conveniently detect data inaccuracies caused by network timeouts, media API instability, etc., facilitating timely implementation of handling strategies. [Attached Image Description]

[0029] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0030] Figure 1 A flowchart of an API interface detection method based on data comparison according to an embodiment of this application is shown;

[0031] Figure 2 A flowchart of an API interface detection method based on data comparison according to another embodiment of this application is shown;

[0032] Figure 3 A flowchart of a data comparison-based API interface detection method according to another embodiment of this application is shown;

[0033] Figure 4 A schematic diagram of an interface data comparison process according to an embodiment of this application is shown;

[0034] Figure 5 A block diagram of an API interface detection apparatus based on data comparison according to an embodiment of this application is shown;

[0035] Figure 6 A block diagram of a computer device according to one embodiment of this application is shown;

[0036] Figure 7 A block diagram of a computer device according to one embodiment of this application is shown.

Detailed Implementation Methods

[0037] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0038] Figure 1 A flowchart of an API interface detection method based on data comparison according to an embodiment of this application is shown.

[0039] like Figure 1 As shown, an API interface detection method based on data comparison according to an embodiment of this application includes:

[0040] Step 102: Obtain an interface data comparison instruction, wherein the interface data comparison instruction indicates a target API interface for obtaining interface data to be compared.

[0041] In real-world scenarios, the stability of an interface is affected by various factors such as network environment and hardware performance. When an interface malfunctions, it impacts data transmission performance. Furthermore, interfaces involve a significant amount of data during application processing; this data, known as interface data, reflects the overall performance of the interface to a certain extent.

[0042] Therefore, if it is necessary to test the performance of a target API interface, an interface data comparison instruction for the target API interface can be generated to initiate a comparison operation on the interface data involved in the target API interface, thereby determining whether the target API interface is a valid interface based on the comparison results.

[0043] In one possible design, developers can perform interface data comparison operations on the target API interface through the interface management platform. When the interface management platform receives the interface data comparison operation, it generates an interface data comparison instruction to detect whether the target API interface is a valid interface.

[0044] In another possible design, any electronic device, such as a client or server, that has a requirement to test the performance of the interface can periodically generate interface data comparison instructions to detect whether the target API interface is a valid interface.

[0045] Step 104: In response to the interface data comparison instruction, obtain the first interface data set, the second interface data set, and the third interface data set related to the target API interface through the first application, the second application, and the third application, respectively.

[0046] The first application, the second application, and the third application are all computer programs with interface data acquisition functions. Since the basis for data comparison is the dataset to be compared, the interface data set of the target API interface can be obtained from the same database by the first application, the second application, and the third application respectively, for the data comparison step.

[0047] The number of the first application, the second application, and the third application can be single or multiple.

[0048] The data in the first interface data set, the second interface data set, and the third interface data set are all data that can reflect the performance of the target API interface.

[0049] Step 106: Compare the data of at least two pairs of interface data sets in the first interface data set, the second interface data set, and the third interface data set to obtain at least two comparison results.

[0050] Step 108: If the comparison results of at least two items meet the preset restrictions, the target API interface is determined to be a valid interface.

[0051] Generally, if the target API is stable, the data obtained by different applications from the target API under the same external conditions will be consistent. These same external conditions include, but are not limited to: the data being retrieved at the same time period or moment; the data being retrieved via the same path; and the data being retrieved from the target API within the same path. However, due to the inherent diversity of data and the possibility that even minor data differences can lead to extremely low interface stability variations, further judgments considering fault tolerance can be added to the comparison results.

[0052] Specifically, considering fault tolerance, certain restrictions can be set. That is, as long as the comparison results obtained meet the preset restrictions, the target API interface is determined to be a valid interface.

[0053] In one possible design, the preset constraint includes: the number of consistent results among the at least two comparison results reaches a first specified number.

[0054] The first specified number refers to the minimum number of consistent results in the comparison results that reflect the target API interface being in a stable state. Therefore, if the number of consistent results in the comparison results reaches the first specified number, it indicates that the comparison results reflect the target API interface being in a stable state, and the target API interface can be determined to be a valid interface.

[0055] In another possible design, the preset constraint includes: the proportion of consistent results among the at least two comparison results reaches a first specified proportion.

[0056] The first specified percentage refers to the minimum percentage of consistent results in the comparison results that reflect the target API interface being in a stable state among all comparison results. Therefore, if the percentage of consistent results in the comparison results reaches the first specified percentage, it indicates that the comparison results reflect the target API interface being in a stable state, and the target API interface can be determined to be a valid interface.

[0057] In another possible design, the preset limiting conditions include: the number of consistent results among the at least two comparison results reaches a first specified number, and the proportion of consistent results among the at least two comparison results reaches a first specified proportion.

[0058] At this point, if the number of consistent results in the comparison results reaches a first specified number, and the proportion of consistent results in the comparison results reaches a first specified proportion, it indicates that the comparison results reflect that the target API interface is in a stable state, and the target API interface can be determined to be a valid interface.

[0059] The above technical solution allows developers to issue an interface data comparison command with a single click in real-world scenarios. The system responds automatically by calling at least three applications to retrieve data from the target API interface for comparison. Then, preset constraints are applied to further evaluate the comparison results, improving the automation level of interface data comparison and stability assessment while reducing manual and time costs. In particular, the introduction of preset constraints, which consider data fault tolerance, effectively enhances the reliability of data comparison results, avoiding misjudgments of interface stability due to minor data differences that are insufficient to affect interface stability or errors generated during the data comparison process. This significantly improves the accuracy of interface stability assessment. In practical applications, this technical solution can automatically and conveniently detect data inaccuracies caused by network timeouts, media API instability, and other reasons, facilitating timely implementation of corrective measures.

[0060] Figure 2 A flowchart of an API interface detection method based on data comparison according to another embodiment of this application is shown.

[0061] like Figure 2 As shown, another embodiment of the API interface detection method based on data comparison according to this application includes:

[0062] Step 202: Obtain an interface data comparison instruction, wherein the interface data comparison instruction indicates a target API interface for obtaining interface data to be compared.

[0063] Step 204: Obtain all available data related to the target API interface through the first application, the second application, and the third application respectively, to obtain the first interface data set, the second interface data set, and the third interface data set.

[0064] Step 206: Compare the first interface data set, the second interface data set, and the third interface data set pairwise to obtain three comparison results.

[0065] In this technical solution, the first application, the second application, and the third application can be configured to obtain all available data related to the target API interface, and the available data of each of the first application, the second application, and the third application can be compared pairwise.

[0066] Specifically, this involves comparing all available data for the first and second applications, as well as comparing all available data for the first and third applications, and comparing all available data for the second and third applications. Each comparison result is derived from comparing all available data related to the target API interface, and comprehensively reflects the performance of all available data related to the target API interface after comparison.

[0067] Step 208: If the three comparison results meet the preset restrictions, the target API interface is determined to be a valid interface. The preset restrictions include: the number of consistent results among the three comparison results reaches a first specified number and / or the proportion of consistent results among the three comparison results reaches a first specified proportion.

[0068] Optionally, the first specified quantity is 2. Of course, the first specified quantity can also be any other quantity that meets the actual interface stability judgment requirements, and is not limited to the examples in this application.

[0069] Optionally, the first specified percentage is 60%. Of course, the first specified percentage can be any other value that meets the actual interface stability judgment requirements, and is not limited to the example in this application.

[0070] The above technical solution can automatically call at least three applications to obtain all available data of the target API interface for comparison, comprehensively considering the impact of the performance of all available data related to the target API interface on data stability after comparison. Furthermore, preset constraints are used to further evaluate the obtained comparison results, improving the automation level of interface data comparison and stability judgment, and reducing manual and time costs. In particular, the introduction of preset constraints, which consider data fault tolerance, can effectively improve the reliability of data comparison results, avoiding misjudgments of interface stability due to minor data differences that are insufficient to affect interface stability or errors generated during the data comparison process, greatly improving the accuracy of interface stability judgment.

[0071] In another possible design, step 204 includes: obtaining all available data related to the target API interface generated during a first specified time period through the first application, as the first interface data set; obtaining all available data related to the target API interface generated during a second specified time period through the second application, as the second interface data set; and obtaining all available data related to the target API interface generated during a third specified time period through the third application, as the third interface data set.

[0072] In other words, multiple applications can obtain all data related to the target API interface generated at different times. In real-world scenarios, API interfaces often perform the same function at the same time within each time period, thus generating the same data.

[0073] For example, the API interface for checking whether the app version is updated will query the server at a fixed time every day to see if there is an installation package available for download. Here, "every day" refers to a time period, and "fixed time" refers to the same time period within the time period. The data related to the API interface for checking whether the app version is updated within the fixed time period is the data generated by the API interface for checking whether the app version is updated and querying the server to see if there is an installation package available for download.

[0074] Therefore, by comparing data from the same API interface at different times using multiple applications, the time dimension is added to the data comparison process. This ensures that the stability of the API interface is fully considered in terms of time span, thus expanding the temporal scope of the API interface stability assessment. This helps to arrive at stability judgment results that are more adapted to the actual application level of the API interface.

[0075] Figure 3 A flowchart of an API interface detection method based on data comparison according to another embodiment of this application is shown.

[0076] like Figure 3As shown, another embodiment of the API interface detection method based on data comparison according to this application includes:

[0077] Step 302: Obtain an interface data comparison instruction, wherein the interface data comparison instruction indicates a target API interface for obtaining interface data to be compared.

[0078] Step 304: In response to the interface data comparison instruction, obtain all available data related to the target API interface through the first application, as the first interface data set; obtain second specified data from all available data related to the target API interface through the second application, as the second interface data set; obtain third specified data from all available data related to the target API interface through the third application, as the third interface data set.

[0079] In this technical solution, the first application is used as the main application to obtain all available data related to the target API interface, and the second and third applications are used as slave applications to obtain a portion of the data related to the target API interface.

[0080] For example, the first application obtains the creative reports, unit reports, and planning reports generated by the target API interface, while the second and third applications each obtain the planning reports generated by the target API interface.

[0081] Based on this, relevant parts of the data from the application can be compared with all available data from the main application, and related data between applications can also be compared, which further reduces the computational load of data comparison and improves the efficiency of data comparison and even interface stability judgment.

[0082] Step 306: Determine the first specified data associated with the second specified data in the first interface data set, and determine whether the first specified data matches the second specified data.

[0083] Step 308: If the first specified data matches the second specified data, determine that the comparison result of the first interface data set and the second interface data set is consistent; otherwise, determine that the comparison result of the first interface data set and the second interface data set is inconsistent.

[0084] In one possible design, the first specified data is data obtained by the first application in the first time period via the first path and generated by the first data processing operation; correspondingly, the second specified data is data obtained by the second application in the first time period via the first path and generated by the first data processing operation.

[0085] Based on this, it is determined whether the first specified data matches the second specified data, that is, whether the first specified data and the second specified data are completely consistent.

[0086] In another possible design, the first specified data is data obtained by the first application in the first time period via the first path and generated by the first data processing operation, and the second specified data is data obtained by the second application in the first time period via the second path and generated by the second data processing operation associated with the first data processing operation.

[0087] Based on this, it is determined that the first specified data matches the second specified data, that is, whether the first specified data and the second specified data can reflect the correlation between the first data processing operation and the second data processing operation in the first time period. If the correlation can be reflected, it is determined that the first specified data and the second specified data are consistent.

[0088] Step 310: Determine a fourth specified data associated with the third specified data in the first interface data set, and determine whether the fourth specified data matches the third specified data.

[0089] Step 312: If the fourth specified data matches the third specified data, determine that the comparison result of the first interface data set and the third interface data set is consistent; otherwise, determine that the comparison result of the first interface data set and the third interface data set is inconsistent.

[0090] Similarly, the third and fourth specified data are data that occurred in the same time period and are located on the same path, or data that occurred in the same time period and were generated by related data processing operations and may therefore be related. The consistency judgment process will not be elaborated here.

[0091] Step 314: Determine the fifth specified data associated with the third specified data in the second interface data set, and determine whether the fifth specified data matches the third specified data.

[0092] Step 316: If the fifth specified data matches the third specified data, determine that the comparison result of the second interface data set and the third interface data set is consistent; otherwise, determine that the comparison result of the second interface data set and the third interface data set is inconsistent.

[0093] Similarly, the third and fifth specified data are data that occurred in the same time period and are located on the same path, or data that occurred in the same time period and were generated by related data processing operations and may therefore be related. The consistency judgment process will not be elaborated here.

[0094] Step 318: If all comparison results meet the preset restrictions, determine that the target API interface is a valid interface. The preset restrictions include: the number of consistent results in all comparison results reaches a first specified number and / or the proportion of consistent results in all comparison results reaches a first specified proportion.

[0095] The above technical solution can automatically retrieve all available data of the target API interface from the main application, retrieve partial data of the target API interface from the application, and compare the partial data from the application with relevant parts of the total available data of the main application, as well as compare related data between the applications. This reduces the computational load of data comparison and helps improve the efficiency of data comparison and even interface stability judgment. Furthermore, the comparison results are further evaluated using preset constraints, which improves the automation level of interface data comparison and stability judgment, and reduces manual and time costs. In particular, the introduction of preset constraints, which takes into account data fault tolerance, can effectively improve the reliability of data comparison results, avoid misjudging interface stability due to minor data differences that are not enough to affect interface stability or errors generated during the data comparison process, and greatly improve the accuracy of interface stability judgment.

[0096] It should be added that, since different applications have different data acquisition and data representation capabilities, the confidence level of the results obtained by comparing the interface data sets obtained by different applications varies.

[0097] Based on this, a specified application with a confidence level greater than a specified value can be selected from the second application and the third application. Furthermore, based on the preset constraints described above, the comparison results involving the specified interface data set of the specified application are further restricted. The confidence level of the application in the second application and the third application is positively correlated with the accuracy of the application's historical comparison results.

[0098] In another possible design, step 304 includes: obtaining all available data related to the target API interface generated during a first specified time period through the first application, as the first interface data set; obtaining second specified data from all available data related to the target API interface generated during a second specified time period through the second application, as the second interface data set; and obtaining third specified data from all available data related to the target API interface generated during the second specified time period through the third application, as the third interface data set.

[0099] In other words, while comparing relevant portions of data from the application with all available data from the main application, and comparing related data between applications, the time-domain breadth of API stability assessment is also considered, setting corresponding time periods for data acquisition for each application. This adds a time dimension to the data comparison process, ensuring that the stability assessment of the API fully considers the time span, thus broadening the time-domain breadth of API stability evaluation. Combined with the technical solution of automatically calling the main application to obtain all available data of the target API, obtaining partial data from the application, and comparing relevant portions of the partial data from the application with all available data from the main application, as well as comparing related data between applications, this helps to arrive at stability assessment results that are more adaptable to the actual changes in APIs over time.

[0100] In one possible design, the preset constraint further includes: the comparison result between the specified interface data set obtained by the specified application in the second application and the specified application in the third application and the first interface data set is consistent.

[0101] On the basis that the number of consistent results in the at least two comparison results reaches a first specified number and / or the proportion of consistent results in the at least two comparison results reaches a first specified proportion, only when the comparison result of the specified interface data set obtained by the specified application with high confidence is consistent with the first interface data set is it said that the currently obtained consistent results have sufficient confidence to represent the stability of the target result.

[0102] In another possible design, the preset constraints also include: the comparison result of the specified interface data set obtained by the specified application in the second application and the specified application in the third application is consistent with the first interface data set, and the number of the specified applications reaches a second specified number.

[0103] In another possible design, the preset constraints further include: the comparison result of the specified interface data set obtained by the specified application in the second application and the third application is consistent with the first interface data set, and the proportion of the specified application in the total number of the second application and the third application reaches a second specified proportion.

[0104] In another possible design, the preset constraints further include: the comparison result between the specified interface data set obtained by the specified application in the second application and the specified application in the third application and the first interface data set is consistent, and the proportion of the specified application in the total number of the first application, the second application and the third application reaches a third specified proportion.

[0105] Based on the above embodiments, Figure 4 A schematic diagram of an interface data comparison process according to an embodiment of this application is shown.

[0106] like Figure 4 As shown, the main program (relative to the first application), comparison program 1 (relative to the second application), and comparison program 2 (relative to the third application) read data associated with the target result from the user library, and store the read data in the main library, comparison library 1, and comparison library 2, respectively.

[0107] Next, the data in the master database and the comparison database 1 are compared to obtain comparison result 1; then the data in the comparison database 1 and the comparison database 2 are compared to obtain comparison result 2.

[0108] If at least one of the comparison results in comparison result 1 and comparison result 2 is consistent, then the target API interface is determined to be a valid and stable interface.

[0109] Otherwise, trigger the function to re-fetch data and perform a second comparison of the inconsistencies in comparison result 1 and comparison result 2.

[0110] In conjunction with the foregoing embodiments, specifically, if at least two comparison results do not meet the preset constraints, for the comparison results that do not meet the preset constraints, two target applications are determined among the first application, the second application, and the third application to obtain a pair of interface data sets that generate the comparison results; inconsistent data in the comparison results that do not meet the preset constraints are determined; retest data associated with the inconsistent data is obtained through the target API interface via the two target applications respectively; the retest data from the two target applications is compared to obtain a verification result; if the verification result meets the preset constraints, the target API interface is determined to be a valid interface; otherwise, the target API interface is determined to be a potential vulnerability interface.

[0111] This allows for a secondary verification of the initial comparison results, improving the accuracy of interface stability assessment.

[0112] Of course, in another possible design, if the comparison results of at least two items do not meet the preset restrictions, the target API interface can be directly identified as a potential vulnerability interface, reducing the amount of computation and improving the efficiency of interface stability judgment.

[0113] In addition, inconsistencies can be added to error logs, and / or the inconsistencies and / or the final interface stability assessment results can be sent to a designated object via email.

[0114] Of course, the target API interface mentioned in the context can be a single target API interface, multiple target API interfaces that perform the same function in combination, or multiple unrelated target API interfaces. In summary, the technical solution of this application can be used to automatically and quickly determine the stability of a single target API interface, and can also be used as a unified testing tool to perform stability testing on a large number of interfaces periodically or randomly.

[0115] Figure 5 A block diagram of an API interface detection apparatus based on data comparison according to an embodiment of this application is shown.

[0116] like Figure 5 As shown, an API interface detection device 500 based on data comparison according to an embodiment of this application includes: a comparison instruction acquisition unit 502, used to acquire an interface data comparison instruction, wherein the interface data comparison instruction indicates a target API interface for acquiring interface data to be compared; an interface data acquisition unit 504, used to, in response to the interface data comparison instruction, acquire a first interface data set, a second interface data set, and a third interface data set related to the target API interface through a first application, a second application, and a third application, respectively; an interface data comparison unit 506, used to perform data comparison on at least two pairs of interface data sets in the first interface data set, the second interface data set, and the third interface data set, and obtain at least two comparison results; and an interface classification unit 508, used to determine the target API interface as a valid interface if the at least two comparison results meet preset restrictions, wherein the preset restrictions include: the number of consistent results in the at least two comparison results reaches a first specified number and / or the proportion of consistent results in the at least two comparison results reaches a first specified proportion.

[0117] Optionally, in one embodiment of this application, the interface data acquisition unit 504 is configured to: acquire all available data through the target API interface via the first application, the second application, and the third application respectively, to obtain the first interface data set, the second interface data set, and the third interface data set.

[0118] In one embodiment of this application, optionally, the interface data comparison unit 506 is used to: compare the first interface data set, the second interface data set and the third interface data set in pairs to obtain three comparison results.

[0119] In one embodiment of this application, optionally, the interface data acquisition unit 504 is configured to: acquire all available data through the first application via the target API interface, as the first interface data set; acquire second specified data from the all available data through the second application via the target API interface, as the second interface data set; acquire third specified data from the all available data through the third application via the target API interface, as the third interface data set; determine a first specified data associated with the second specified data in the first interface data set, and determine whether the first specified data matches the second specified data, wherein if the first specified data matches the second specified data, the comparison result between the first interface data set and the second interface data set is determined to be consistent.

[0120] In one embodiment of this application, optionally, the interface data comparison unit 506 is further configured to: determine a fifth specified data associated with the third specified data in the second interface data set, and determine whether the fifth specified data matches the third specified data, wherein if the fifth specified data matches the third specified data, the comparison result between the second interface data set and the third interface data set is determined to be consistent; or determine a sixth specified data associated with the second specified data in the third interface data set, and determine whether the sixth specified data matches the second specified data, wherein if the sixth specified data matches the second specified data, the comparison result between the second interface data set and the third interface data set is determined to be consistent.

[0121] In one embodiment of this application, optionally, the API interface detection device 500 based on data comparison further includes: a first execution unit, configured to determine the target API interface as a potential vulnerability interface if the at least two comparison results do not meet the preset restriction conditions; a second execution unit, configured to, if the at least two comparison results do not meet the preset restriction conditions, for comparison results that do not meet the preset restriction conditions, determine two target applications in the first application, the second application, and the third application for obtaining a pair of interface data sets that generate the comparison results; determine inconsistent data in the comparison results that do not meet the preset restriction conditions; obtain retest data associated with the inconsistent data through the target API interface via the two target applications respectively; compare the retest data from the two target applications to obtain a verification result; if the verification result meets the preset restriction conditions, determine the target API interface as a valid interface; otherwise, determine the target API interface as a potential vulnerability interface.

[0122] In one embodiment of this application, optionally, the preset limiting conditions further include: the comparison result of the specified interface data set obtained by the specified application in the second application and the third application with the first interface data set is consistent; or, the comparison result of the specified interface data set obtained by the specified application in the second application and the third application with the first interface data set is consistent, and the number of the specified applications reaches a second specified number; or the comparison result of the specified interface data set obtained by the specified application in the second application and the third application with the first interface data set is consistent, and the proportion of the specified application in the total number of the second application and the third application reaches a second specified proportion; or the comparison result of the specified interface data set obtained by the specified application in the second application and the third application with the first interface data set is consistent, and the proportion of the specified application in the total number of the first application, the second application and the third application reaches a third specified proportion.

[0123] The API interface detection device 500 based on data comparison uses the solution described in any one of the above embodiments, and therefore has all the above-mentioned technical effects, which will not be repeated here.

[0124] In another embodiment, this application provides a computer device, which may be a server, and its internal structure diagram may be as follows. Figure 6 As shown. The computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile and / or volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface is used to communicate with external clients via a network connection. When the computer program is executed by the processor, it can implement the API interface detection method based on data comparison described in any of the above embodiments.

[0125] In one embodiment, this application also provides a computer device, which can be a client, and its internal structure diagram can be as follows: Figure 7As shown, the computer device includes a processor, memory, network interface, display screen, and input device connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface is used to communicate with an external server via a network connection. When the computer program is executed by the processor, it can implement the API interface detection method based on data comparison described in any of the above embodiments.

[0126] Any of the computer devices described in the embodiments of this application exist in various forms, including but not limited to:

[0127] (1) Mobile communication devices: These devices are characterized by their mobile communication capabilities and primarily aim to provide voice and data communication. These terminals include: smartphones (e.g., iPhones), multimedia phones, feature phones, and low-end phones, etc.

[0128] (2) Ultra-mobile personal computer devices: These devices fall under the category of personal computers, possessing computing and processing capabilities, and generally also have mobile internet access features. These terminals include PDAs, MIDs, and UMPCs, such as the iPad.

[0129] (3) Portable entertainment devices: These devices can display and play multimedia content. This category includes: audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys, wearable devices, and portable car navigation devices.

[0130] (4) Server: A device that provides computing services. The components of a server include a processor, hard disk, memory, system bus, etc. Servers are similar to general computer architectures, but because they need to provide highly reliable services, they have higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.

[0131] (5) Other electronic devices with data interaction functions.

[0132] In addition, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions for performing the following steps: obtaining an interface data comparison instruction, wherein the interface data comparison instruction indicates a target API interface for obtaining interface data to be compared; in response to the interface data comparison instruction, obtaining a first interface data set, a second interface data set, and a third interface data set through the target API interface via a first application, a second application, and a third application, respectively; performing data comparison on at least two pairs of interface data sets among the first interface data set, the second interface data set, and the third interface data set to obtain at least two comparison results; if the at least two comparison results meet preset constraints, determining the target API interface as a valid interface, wherein the preset constraints include: the number of consistent results among the at least two comparison results reaching a first specified number and / or the proportion of consistent results among the at least two comparison results reaching a first specified proportion.

[0133] It should be noted that the functions or steps that can be implemented by the computer-readable storage medium or computer device described above can be referred to the relevant descriptions in the foregoing method embodiments. To avoid repetition, they will not be described one by one here.

[0134] The technical solution of this application has been described in detail above with reference to the accompanying drawings. This technical solution can automatically obtain data from the target API interface through at least three applications, compare the data, and then further evaluate the comparison results using preset constraints. This improves the automation level of interface data comparison and stability judgment, reducing manual and time costs. In particular, the introduction of preset constraints, which consider data fault tolerance, effectively improves the reliability of data comparison results, avoiding misjudgments of interface stability due to minor data differences that are insufficient to affect interface stability or errors generated during the data comparison process, thus greatly improving the accuracy of interface stability judgment. In practical applications, the above technical solution can automatically and conveniently detect data inaccuracies caused by network timeouts, media API instability, etc., facilitating timely implementation of processing strategies.

[0135] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0136] It should be understood that although the terms "first," "second," etc., may be used to describe interface data sets in the embodiments of this application, these interface data sets should not be limited to these terms. These terms are only used to distinguish interface data sets from each other. For example, without departing from the scope of the embodiments of this application, the first interface data set may also be referred to as the second interface data set, and similarly, the second interface data set may also be referred to as the first interface data set.

[0137] Depending on the context, the word "if" as used here can be interpreted as "when," "when," "in response to determination," or "in response to detection." Similarly, depending on the context, the phrase "if determination" or "if detection (of the stated condition or event)" can be interpreted as "when determination," "in response to determination," "when detection (of the stated condition or event)," or "in response to detection (of the stated condition or event)."

[0138] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0139] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0140] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units.

[0141] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0142] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. A method for detecting API interfaces based on data comparison, characterized in that, include: Get interface data comparison instruction, wherein the interface data comparison instruction indicates a target API interface for obtaining interface data to be compared; In response to the interface data comparison instruction, the first interface data set, the second interface data set, and the third interface data set related to the target API interface are obtained through the first application, the second application, and the third application, respectively. At least two pairs of interface data sets in the first interface data set, the second interface data set, and the third interface data set are compared to obtain at least two comparison results. If the at least two comparison results meet the preset restrictions, the target API interface is determined to be a valid interface, wherein the preset restrictions include: the number of consistent results in the at least two comparison results reaches a first specified number and / or the proportion of consistent results in the at least two comparison results reaches a first specified proportion; The step of obtaining the first interface data set, the second interface data set, and the third interface data set related to the target API interface through the first application, the second application, and the third application, respectively, includes: All available data related to the target API interface are obtained through the first application and used as the first interface data set. The second application obtains the second specified data from all available data related to the target API interface, which is used as the second interface data set. The third application obtains a third specified data from all available data related to the target API interface, which is used as the third interface data set.

2. The API interface detection method based on data comparison according to claim 1, characterized in that, The step of obtaining the first interface data set, the second interface data set, and the third interface data set related to the target API interface through the first application, the second application, and the third application, respectively, includes: All available data related to the target API interface are obtained through the first application, the second application, and the third application, respectively, to obtain the first interface data set, the second interface data set, and the third interface data set.

3. The API interface detection method based on data comparison according to claim 2, characterized in that, The step of obtaining the first interface data set, the second interface data set, and the third interface data set related to the target API interface through the first application, the second application, and the third application, respectively, includes: The first application obtains all available data related to the target API interface generated during a first specified time period, which is used as the first interface data set. The second application obtains all available data related to the target API interface generated during the second specified time period, which is used as the second interface data set. The third application obtains all available data related to the target API interface generated during a third specified time period, which is used as the third interface data set.

4. The API interface detection method based on data comparison according to claim 2 or 3, characterized in that, The step involves comparing data from at least two pairs of interface data sets among the first, second, and third interface data sets to obtain at least two comparison results, including: The first interface data set, the second interface data set, and the third interface data set are compared pairwise to obtain three comparison results.

5. The API interface detection method based on data comparison according to claim 1, characterized in that, The step of obtaining the first interface data set, the second interface data set, and the third interface data set related to the target API interface through the first application, the second application, and the third application, respectively, includes: The first application obtains all available data related to the target API interface generated during a first specified time period, which is used as the first interface data set. The second application obtains second specified data from all available data related to the target API interface generated during a second specified time period, and uses this data as the second interface data set. The third application obtains third specified data from all available data related to the target API interface generated during the second specified time period, and uses this data as the third interface data set.

6. The API interface detection method based on data comparison according to claim 1 or 5, characterized in that, The step involves comparing data from at least two pairs of interface data sets among the first, second, and third interface data sets to obtain at least two comparison results, including: In the first interface data set, determine the first specified data associated with the second specified data, and determine whether the first specified data matches the second specified data. If the first specified data matches the second specified data, the comparison result between the first interface data set and the second interface data set is determined to be consistent; and In the first interface data set, a fourth specified data associated with the third specified data is determined, and it is determined whether the fourth specified data matches the third specified data. If the fourth specified data matches the third specified data, the comparison result between the first interface data set and the third interface data set is determined to be consistent; In the second interface data set, a fifth specified data associated with the third specified data is determined, and it is determined whether the fifth specified data matches the third specified data. If the fifth specified data matches the third specified data, the comparison result between the second interface data set and the third interface data set is determined to be consistent.

7. The API interface detection method based on data comparison according to claim 1, characterized in that, Also includes: If the comparison results of at least two items do not meet the preset restrictions, the target API interface is determined to be a potential vulnerability interface. or If the at least two comparison results do not meet the preset restriction conditions, for the comparison results that do not meet the preset restriction conditions, two target applications are determined in the first application, the second application and the third application to obtain a pair of interface data sets that generate the comparison results; Identify inconsistent data in the comparison results that do not meet the preset constraints; The two target applications obtain the retest data associated with the inconsistent data through the target API interface. The retest data from the two target applications are compared to obtain the verification results; If the verification result meets the preset restrictions, the target API interface is determined to be a valid interface; otherwise, the target API interface is determined to be a potential vulnerability interface.

8. The API interface detection method based on data comparison according to claim 1, characterized in that, The preset constraints also include: The comparison result between the specified interface data set obtained by the specified application in the second application and the specified application in the third application and the first interface data set is consistent; or, The comparison result between the specified interface data set obtained by the specified application in the second application and the specified application in the third application and the first interface data set is consistent, and the number of the specified applications reaches the second specified number; or The comparison result between the specified interface data set obtained by the specified application in the second application and the specified application in the third application and the first interface data set is consistent, and the proportion of the specified application in the total number of the second application and the third application reaches the second specified proportion; or The comparison result between the specified interface data set obtained by the specified application in the second application and the specified application in the third application and the first interface data set is consistent, and the proportion of the specified application in the total number of the first application, the second application and the third application reaches the third specified proportion.

9. An API interface detection device based on data comparison, characterized in that, include: A comparison instruction acquisition unit is used to acquire an interface data comparison instruction, wherein the interface data comparison instruction indicates a target API interface for acquiring interface data to be compared. An interface data acquisition unit is used to respond to the interface data comparison instruction by acquiring a first interface data set, a second interface data set, and a third interface data set related to the target API interface through a first application, a second application, and a third application, respectively. An interface data comparison unit is used to compare data of at least two pairs of interface data sets in the first interface data set, the second interface data set and the third interface data set, and obtain at least two comparison results. An interface classification unit is used to determine the target API interface as a valid interface if the at least two comparison results meet preset restrictions, wherein the preset restrictions include: the number of consistent results in the at least two comparison results reaches a first specified number and / or the proportion of consistent results in the at least two comparison results reaches a first specified proportion; The interface data acquisition unit is further configured to acquire all available data related to the target API interface through the first application, as the first interface data set; acquire second specified data from all available data related to the target API interface through the second application, as the second interface data set; and acquire third specified data from all available data related to the target API interface through the third application, as the third interface data set.

10. A computer device, characterized in that, include: At least one processor; And, a memory communicatively connected to the at least one processor; The memory stores instructions executable by the at least one processor, the instructions being configured to perform the method of any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, The device stores computer-executable instructions for performing the method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • A JSON comparison method and device and electronic equipment

    CN109901989A