CN116755971A - Application program interface detection method and device, computer equipment and storage medium - Google Patents

Application program interface detection method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN116755971A
CN116755971A CN202310745848.6A CN202310745848A CN116755971A CN 116755971 A CN116755971 A CN 116755971A CN 202310745848 A CN202310745848 A CN 202310745848A CN 116755971 A CN116755971 A CN 116755971A
Authority
CN
China
Prior art keywords
interface
offline
detected
application program
called
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
CN202310745848.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 Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202310745848.6A priority Critical patent/CN116755971A/en
Publication of CN116755971A publication Critical patent/CN116755971A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses an application program interface detection method, an application program interface detection device, computer equipment and a storage medium, which solve the problem that data are analyzed by stolen because interfaces which are eliminated after offline cannot be performed in a financial system. The method comprises the following steps: and acquiring detection parameters of the application program interface. If the detection parameters of the application program interface meet the pre-offline condition, the application program interface meeting the pre-offline condition is confirmed to be the interface to be detected, and the interface to be detected is added into the queue to be detected. If the interface to be detected is not called in the first preset time, the interface to be detected which is not called is confirmed to be the interface to be offline, and the interface to be offline is added into the queue to be offline. If the interface to be offline is not called in the second preset time, confirming the interface to be offline which is not called as a target offline interface, and downloading the target offline interface. Therefore, interfaces which need to be disconnected can be automatically checked out from a plurality of application program interfaces of the financial system, and the safety of the financial system is improved.

Description

Application program interface detection method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of interface log generation process optimization, and in particular, to an application program interface detection method, an application program interface detection device, a computer device, and a storage medium.
Background
Data security is a very important task for financial systems. In a financial system, since a plurality of application program interfaces exist in related software, updating of the eliminated interfaces and corresponding authentication are easily omitted in the process of software updating iteration, so that the interfaces possibly become data holes, and the risk of theft or modification of data of the financial system exists. And a large amount of abandoned codes can increase the development and maintenance cost of the project.
The existing interfaces which need to be offline are tidied by a back-end developer and sent to a front-end worker, and then codes of the corresponding interfaces are checked and deleted one by the front-end worker, so that the offline of the interfaces is completed. The method for downloading the interface leads to steep increase of labor cost, and the interface interacted with the associated party cannot be found through page investigation, and can only be observed through logs or fed back by users, so that the phenomenon of missing processing or misprocessing occurs in the process of downloading the interface.
Disclosure of Invention
The application relates to an application program interface detection method, an application program interface detection device, computer equipment and a storage medium, and aims to solve the problem that in the existing financial system, the interface which is eliminated after the disconnection is not performed, so that the risk of theft or modification exists in the data of the financial system.
In a first aspect, the present application provides an application program interface detection method, including:
acquiring detection parameters of an application program interface;
if the detection parameters of the application program interface meet the pre-offline condition, the application program interface meeting the pre-offline condition is confirmed to be an interface to be detected, and the interface to be detected is added into a queue to be detected;
if the interface to be detected is not called in the first preset time, confirming the interface to be detected which is not called as an interface to be offline, and adding the interface to be offline into an queue to be offline;
if the interface to be offline is not called in the second preset time, confirming the interface to be offline which is not called as a target offline interface, and downloading the target offline interface.
In a second aspect, the present application provides an application program interface detection apparatus, including:
the parameter acquisition module is used for acquiring detection parameters of the application program interface;
the detection confirming module is used for confirming the interface to be detected which is not called as the interface to be offline if the interface to be detected is not called within the first preset time, and adding the interface to be offline into the queue to be offline;
the system comprises a offline confirmation module, a waiting-to-be-detected interface, a waiting-to-be-offline queue and a waiting-to-be-offline interface, wherein the offline confirmation module is used for confirming the interface to be detected as the interface to be offline if the interface to be detected is not called within a first preset time;
and the interface offline module is used for confirming the interface to be offline which is not called as the target offline interface and downloading the target offline interface if the interface to be offline is not called within the second preset time.
In a third aspect, the present application provides a computer device comprising: a memory and a processor; the memory is connected with the processor and used for storing programs; the processor is configured to implement the steps of the application program interface detection method provided in any embodiment of the present application by running a program stored in the memory.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program, which when executed by a processor causes the processor to implement the steps of the application program interface detection method provided by any of the embodiments of the present application.
The application relates to an application program interface detection method, an application program interface detection device, computer equipment and a storage medium. If the interface to be detected is not called in the first preset time, confirming that the interface to be offline is added to the queue to be offline. If the interface to be offline is not called in the second preset time, confirming the interface to be offline which is not called as a target offline interface, and downloading the target offline interface. Therefore, the application program interface detection method provided by the application can be used for downloading the interface after confirming that the application program interface meets the preset offline condition and is not invoked after the first preset time and the second preset time. The interface needing to be off-line can be automatically checked out from a plurality of application program interfaces of the financial system, so that the data leakage of the financial system caused by the fact that the interface is not off-line in time is avoided, and the safety of the financial system is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of steps of an application program interface detection method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating steps of another method for detecting an application program interface according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating steps of another method for detecting an application program interface according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating steps of another method for detecting an application program interface according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating steps of another method for detecting an application program interface according to an embodiment of the present application;
FIG. 6 is a schematic block diagram of an application detection apparatus provided by an embodiment of the present application;
fig. 7 is a schematic block diagram of a computer device according to an embodiment of the present application.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish identical items or similar items having substantially the same function and effect. For example, the first preset time and the second preset time are only for distinguishing different preset times, and the sequence of the preset times is not limited. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
In order to facilitate understanding of the embodiments of the present application, some words related to the embodiments of the present application are briefly described below.
1. Application program interface (Application Program Interface, API): an application program interface is a set of definitions, programs, and protocols that enable the communication between computer software via an API interface. One of the main functions of the API is to provide a generic set of functions. The programmer can lighten the programming task by calling the API function to develop the application program. The API is also a middleware for providing data sharing for various platforms.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
In the existing financial system, because of more functional requirements, application program interfaces corresponding to the functions need to be added in software. With the updating and iteration process of the software, the eliminated interface technicians can miss updating and corresponding authentication, and the non-updated interfaces can become data holes in the financial system, so that the risk of theft or modification of the data exists. Therefore, the eliminated interfaces need to be offline in time, and the existing interface offline method is that a back-end developer sorts the interfaces which need to be offline based on log observation or user feedback, and the front-end person confirms and deletes codes corresponding to the interfaces one by one. Not only is the efficiency extremely low, but also situations of missing processing and mishandling may occur.
In order to solve the above-mentioned problems, please refer to fig. 1, fig. 1 is a flowchart illustrating steps of an application program interface detection method according to an embodiment of the present application.
As shown in fig. 1, the provided application program interface detection method includes steps S101 to S104.
S101, acquiring detection parameters of an application program interface.
In particular, the detection parameters of all application program interfaces are obtained in the financial system, and whether the interfaces need to be detected can be confirmed through the detection parameters. The interfaces to be detected are screened out by acquiring the detection parameters of all application program interfaces, so that the phenomenon of missed detection can be effectively avoided.
Illustratively, by adding a detection function, such as @ offlineanalysis, to all application program interfaces in the financial system, and configuring corresponding detection parameters, such as a detection time period and whether to perform loop detection on the interface, in the detection function. The detection parameters of all application program interfaces can be obtained by running the detection function.
S102, if the detection parameters of the application program interface meet the pre-offline conditions, the application program interface meeting the pre-offline conditions is confirmed to be an interface to be detected, and the interface to be detected is added into a queue to be detected.
Specifically, when the detection parameter of the application program interface is determined to be in accordance with the pre-offline condition, the interface is first determined to be the interface to be detected, and the interface to be detected is added into the queue to be detected. And judging whether the application program interface in the queue to be detected needs to be offline or not. The interfaces which still have use requirements can be prevented from being deleted by mistake by directly downloading the interfaces according to the detection parameters through the arrangement of the queues to be detected.
For example, the queue to be detected is defined by defining a redis memory in the financial system as the queue to be detected, so that the interface to be detected can be stored in the queue to be detected.
S103, if the interface to be detected is not called in the first preset time, the interface to be detected which is not called is confirmed to be the interface to be offline, and the interface to be offline is added into the queue to be offline.
Specifically, if the interface to be detected in the queue to be detected is not called within a first preset time, for example, within three months, the interface to be detected is not called, and then the interface to be detected is preliminarily in accordance with the offline condition, and is confirmed to be added to the offline queue. After preliminarily confirming that the interface needs to be offline through the interface to be detected in the queue to be detected, confirming the interface to be offline, adding the interface to be offline into the queue to be offline, and offline after confirmation is completed. It can be ensured that the interface that is down is indeed an application interface that has been completely obsolete in the financial system.
S104, if the interface to be offline is not called in the second preset time, confirming the interface to be offline which is not called as a target offline interface, and downloading the target offline interface.
Specifically, when the offline interface in the offline queue is not called in the second preset reagent, for example, the offline interface is not called within one month, and the offline interface is confirmed to be the target offline interface. The interface needing to be offline can be accurately checked through the application program interface detection method, the problem that the data of the financial system is leaked due to the fact that the interface is not offline in time is avoided, and the safety of the financial system is improved.
In some embodiments, the detection parameters include a detection period and a detection manner of the application program interface. Referring to fig. 2, fig. 2 is a flowchart illustrating steps of another method for detecting an application program interface according to an embodiment of the present application. Unlike the method provided in fig. 1, the method provided in fig. 2 further comprises step S102a.
S102a, if the detection period of the application program interface is smaller than the preset detection period, the detection mode is circular detection, the application program interface is confirmed to be an interface to be detected, and the interface to be detected is added into a queue to be detected.
When the detection parameters include a detection time period and whether to perform cyclic detection on the interface, the pre-offline condition is that the interface detection time period is smaller than a preset detection period, for example, the preset detection period is three months, and the interface is subjected to cyclic detection. For an application program interface needing frequent detection, the application program interface is considered to be an interface to be offline.
In some embodiments, referring to fig. 3, fig. 3 is a flowchart illustrating steps of another method for detecting an application program interface according to an embodiment of the present application. Unlike the method provided in fig. 1, the method provided in fig. 3 further includes step S201.
S201, if the detection parameters of the application program interfaces do not meet the pre-offline conditions, the application program interfaces which do not meet the pre-offline conditions are confirmed to be target online interfaces, and the target online interfaces are online.
The front-end developer sets the detection parameters of the frequently-called application program interfaces, for example, the pre-offline condition is that the detection period of the application program interfaces is smaller than the preset detection period, the detection mode is the cyclic detection, and the application program interfaces which need to be frequently called can be confirmed as target online interfaces to finish online by setting the time period to be larger than the preset detection period and without carrying out cyclic detection on the application program interfaces.
In some embodiments, referring to fig. 4, fig. 4 is a flowchart illustrating steps of another method for detecting an application program interface according to an embodiment of the present application. Unlike the method provided in fig. 1, the method provided in fig. 4 further includes steps S301 to S302.
S301, if the interface to be detected is called in the first preset time, confirming the called interface to be detected as an interface to be online, and adding the interface to be online to an online queue.
S302, if the to-be-online interface is called in the third preset time, confirming the called to-be-online interface as a target online interface, and uploading the target online interface.
If the interface to be detected in the queue to be detected is called within the first preset time, the interface to be detected may still need to be called in the financial system, but in order to avoid the occurrence of malicious call or incorrect call, the interface to be detected still needs to be online after being confirmed to be correct. And confirming the interface to be detected to be called as the interface to be online, adding the interface to be detected to the queue to be online, and confirming the interface to be online as the target interface to be online if the interface to be online is called within a third preset time, for example, within two months. And the interface which really needs to be called in the financial system can be timely on line, so that the software in the financial system can be ensured to normally run.
If the interface to be online is not called in the third preset time, the interface to be online which is not called is re-confirmed to be the interface to be detected, and the interface to be detected is added into the queue to be detected.
If the interface in the queue to be online is not called in the third preset time, the interface to be online needs to be confirmed to be the interface to be detected again, and the interface to be online is added into the queue to be detected for detection again. The method can avoid that the application program interface is not misplaced under the condition of malicious call or misprimed call.
In some embodiments, referring to fig. 5, fig. 5 is a flowchart illustrating steps of another method for detecting an application program interface according to an embodiment of the present application. Unlike the method provided in fig. 1, the method provided in fig. 5 further includes steps S401 to S402.
S401, if the interface to be offline is called in a second preset time, intercepting the call, generating early warning information and sending the early warning information to the management terminal.
S402, the called interface to be offline is reconfirmed to be the interface to be detected, and the interface to be detected is added into a queue to be detected.
Since the interface in the queue to be offline is called, the interface may not be updated and authenticated in the updating process, so that the data in the financial system may be leaked if the interface to be offline is called. Therefore, when the interface to be disconnected is called, the calling information is intercepted, early warning information is generated and sent to the management terminal, a front-end technician inquires the early warning information in the management terminal, and whether the calling is malicious or not is judged, and whether the interface is disconnected directly or not is confirmed. And if the front-end technician confirms that the call is normal, the interface to be disconnected is reconfirmed to be the interface to be detected, and the interface to be detected is added into the queue to be detected. Therefore, the problem that the data of the financial system is leaked due to the fact that the interface to be detected becomes a data vulnerability can be avoided.
In some embodiments, the offline target offline interface includes: and sending the interface management log to the management terminal. The interface management log comprises identification information of the target offline interface. So that the management terminal deletes the data of the target offline interface according to the identification information of the target offline interface. By sending the identification information of the target offline interface to be offline to the management terminal, the front-end personnel directly delete the data of the corresponding application program interface, such as the code of the application program interface, according to the identification information, and the offline of the target offline interface can be completed. Therefore, the efficiency of the provided detection method for the application program interface can be greatly improved.
The application provides an application program interface detection method, which can be used for downloading an application program interface after confirming that the interface meets the preset offline condition and is not invoked after the first preset time and the second preset time. The interface needing to be off-line can be automatically checked out from a plurality of application program interfaces of the financial system, so that the data leakage of the financial system caused by the fact that the interface is not off-line in time is avoided, and the safety of the financial system is improved.
Referring to fig. 6, fig. 6 is a schematic block diagram of an application program detecting device according to an embodiment of the present application, where the application program detecting device is configured to execute the foregoing application program interface detecting method. The application program interface detection device can be configured on a terminal or a server.
As shown in fig. 6, the application program interface detection device 100 includes a parameter acquisition module 101, a detection confirmation module 102, a down confirmation module 103, an interface down module 104, a queue joining module 105, an on-line confirmation module 106, an interface on-line module 107, a queue detection module 108, an early warning generation module 109, and a data deletion module 104a.
The parameter obtaining module 101 is configured to obtain the detection parameter of the application program interface.
The detection confirmation module 102 is configured to confirm the interface to be detected that is not called as the interface to be offline if the interface to be detected is not called within the first preset time, and add the interface to be offline to the queue to be offline.
The offline confirmation module 103 is configured to, if the interface to be detected is not called within the first preset time, confirm the interface to be detected that is not called as an interface to be offline, and add the interface to be offline to the queue to be offline.
The interface offline module 104 is configured to confirm the interface to be offline that is not called as the target offline interface, and offline the target offline interface if the interface to be offline is not called within the second preset time.
The queue adding module 105 is configured to determine the application program interface as an interface to be detected if the detection period of the application program interface is less than the preset detection period in a cyclic detection manner, and add the interface to be detected to the queue to be detected.
And the online confirmation module 106 is configured to confirm the application program interface that does not meet the pre-offline condition as the target online interface if the detection parameter of the application program interface does not meet the pre-offline condition.
The interface online module 107 is configured to, if the interface to be detected is called within a first preset time, confirm the called interface to be detected as an interface to be online, and add the interface to be online to the queue to be online. If the to-be-online interface is called in the third preset time, confirming the called to-be-online interface as a target online interface, and uploading the target online interface.
The queue detection module 108 is configured to, if the to-be-online interface is not called within the third preset time, reconfirm the to-be-online interface that is not called as the to-be-detected interface, and add the to-be-detected interface to the to-be-detected queue.
The early warning generation module 109 is configured to intercept the call if the interface to be offline is called within a second preset time, and generate early warning information and send the early warning information to the management terminal;
and re-confirming the called interface to be offline as an interface to be detected, and adding the interface to be detected into a queue to be detected.
A data deleting module 104a, configured to send an interface management log to a management terminal; the interface management log comprises identification information of a target offline interface; so that the management terminal deletes the data of the target offline interface according to the identification information of the target offline interface.
It should be noted that, for convenience and brevity of description, the specific working process of the apparatus and each module described above may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
While the application has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
The apparatus described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 7.
Referring to fig. 7, fig. 7 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device may be a server. With reference to FIG. 7, the computer device includes a processor, memory, and a network interface connected by a system bus, where the memory may include a non-volatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program comprises program instructions that, when executed, cause the processor to perform any of a number of application program interface detection methods.
The processor is used to provide computing and control capabilities to support the operation of the entire computer device.
The internal memory provides an environment for the execution of a computer program in a non-volatile storage medium that, when executed by a processor, causes the processor to perform any of a number of application program interface detection methods.
The network interface is used for network communication such as transmitting assigned tasks and the like. It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein in one embodiment the processor is configured to run a computer program stored in the memory to implement the steps of:
and acquiring detection parameters of the application program interface.
If the detection parameters of the application program interface meet the pre-offline condition, the application program interface meeting the pre-offline condition is confirmed to be the interface to be detected, and the interface to be detected is added into the queue to be detected.
If the interface to be detected is not called in the first preset time, the interface to be detected which is not called is confirmed to be the interface to be offline, and the interface to be offline is added into the queue to be offline.
If the interface to be offline is not called in the second preset time, confirming the interface to be offline which is not called as a target offline interface, and downloading the target offline interface.
In some embodiments, the detection parameters include a detection period and a detection manner of the application program interface, and the processor is further configured to implement: if the detection period of the application program interface is smaller than the preset detection period, the detection mode is circular detection, the application program interface is confirmed to be the interface to be detected, and the interface to be detected is added into the queue to be detected.
In some embodiments, the processor is further to implement: if the detection parameters of the application program interface do not meet the pre-offline condition, the application program interface which does not meet the pre-offline condition is confirmed to be a target online interface, and the target online interface is online.
In some embodiments, the processor is further to implement: if the interface to be detected is called in the first preset time, the called interface to be detected is confirmed to be the interface to be online, and the interface to be online is added into the queue to be online. If the to-be-online interface is called in the third preset time, confirming the called to-be-online interface as a target online interface, and uploading the target online interface.
In some embodiments, the processor is further to implement: and if the interface to be online is not called in the third preset time, re-confirming the interface to be online which is not called as the interface to be detected, and adding the interface to be detected into a queue to be detected.
In some embodiments, the processor is further to implement: if the interface to be offline is called in the second preset time, intercepting the call, generating early warning information and sending the early warning information to the management terminal. And re-confirming the called interface to be offline as an interface to be detected, and adding the interface to be detected into a queue to be detected.
In some embodiments, the processor is further to implement: the interface management log is sent to a management terminal; the interface management log comprises identification information of a target offline interface; so that the management terminal deletes the data of the target offline interface according to the identification information of the target offline interface.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, the computer program comprises program instructions, and the processor executes the program instructions to realize any one of the application program interface detection methods provided by the embodiment of the application.
The computer readable storage medium may be an internal storage unit of the computer device according to the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, which are provided on the computer device.
While the application has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (10)

1. An application program interface detection method, the method comprising:
acquiring detection parameters of the application program interface;
if the detection parameters of the application program interface meet the pre-offline conditions, the application program interface meeting the pre-offline conditions is confirmed to be an interface to be detected, and the interface to be detected is added into a queue to be detected;
if the interface to be detected is not called in the first preset time, the interface to be detected which is not called is confirmed to be an interface to be offline, and the interface to be offline is added into an queue to be offline;
and if the interface to be offline is not called in the second preset time, confirming the interface to be offline which is not called as a target offline interface, and downloading the target offline interface.
2. The method according to claim 1, wherein the detection parameters include a detection period and a detection manner of the application program interface; if the detection parameters of the application program interface meet the pre-offline condition, the application program interface meeting the pre-offline condition is confirmed to be an interface to be detected, and the interface to be detected is added into a queue to be detected, including:
if the detection period of the application program interface is smaller than the preset detection period, the detection mode is circular detection, the application program interface is confirmed to be the interface to be detected, and the interface to be detected is added into a queue to be detected.
3. The application program interface detection method according to claim 1, characterized in that the method comprises:
and if the detection parameters of the application program interfaces do not meet the pre-offline conditions, confirming the application program interfaces which do not meet the pre-offline conditions as target online interfaces, and uploading the target online interfaces.
4. The application program interface detection method according to claim 1, characterized in that the method comprises:
if the interface to be detected is called in the first preset time, the called interface to be detected is confirmed to be an interface to be online, and the interface to be online is added into an online queue;
and if the interface to be online is called in a third preset time, confirming the called interface to be online as a target online interface, and uploading the target online interface.
5. The application program interface detection method according to claim 4, wherein the method comprises:
and if the interface to be online is not called in the third preset time, re-confirming the interface to be online which is not called as the interface to be detected, and adding the interface to be detected into the queue to be detected.
6. The application program interface detection method according to claim 1, characterized in that the method comprises:
if the interface to be offline is called in the second preset time, intercepting the call, generating early warning information and sending the early warning information to a management terminal;
and re-confirming the called interface to be offline as the interface to be detected, and adding the interface to be detected into the queue to be detected.
7. The application program interface detection method according to claim 1, wherein the offline the target offline interface includes:
the interface management log is sent to a management terminal; the interface management log comprises identification information of the target offline interface; and the management terminal deletes the data of the target offline interface according to the identification information of the target offline interface.
8. An application program interface detection apparatus, characterized in that the application program interface detection apparatus comprises:
the parameter acquisition module is used for acquiring the detection parameters of the application program interface;
the detection confirming module is used for confirming the interface to be detected which is not called as an interface to be offline if the interface to be detected is not called within a first preset time, and adding the interface to be offline into a queue to be offline;
the offline confirmation module is used for confirming the interface to be detected which is not called as an interface to be offline if the interface to be detected is not called within a first preset time, and adding the interface to be offline to an queue to be offline;
and the interface offline module is used for confirming the interface to be offline which is not called as a target offline interface and offline the target offline interface if the interface to be offline is not called within a second preset time.
9. A computer device, the computer device comprising:
a memory and a processor;
the memory is connected with the processor and used for storing programs;
the processor is configured to implement the steps of the application program interface detection method according to any one of claims 1 to 7 by running a program stored in the memory.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, causes the processor to implement the steps of the application program interface detection method according to any one of claims 1-7.
CN202310745848.6A 2023-06-20 2023-06-20 Application program interface detection method and device, computer equipment and storage medium Pending CN116755971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310745848.6A CN116755971A (en) 2023-06-20 2023-06-20 Application program interface detection method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310745848.6A CN116755971A (en) 2023-06-20 2023-06-20 Application program interface detection method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116755971A true CN116755971A (en) 2023-09-15

Family

ID=87947554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310745848.6A Pending CN116755971A (en) 2023-06-20 2023-06-20 Application program interface detection method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116755971A (en)

Similar Documents

Publication Publication Date Title
CN108427616B (en) Background program monitoring method and monitoring device
CN111695156A (en) Service platform access method, device, equipment and storage medium
EP3807754A1 (en) Implementation of compliance settings by a mobile device for compliance with a configuration scenario
CN112039900B (en) Network security risk detection method, system, computer device and storage medium
CN107885995A (en) The security sweep method, apparatus and electronic equipment of small routine
WO2023035751A1 (en) Intelligent confusion for mobile terminal application
CN110704131B (en) Method and device for calling native application by HTML5 application
US10986112B2 (en) Method for collecting cyber threat intelligence data and system thereof
US20100185903A1 (en) Failure Repetition Avoidance
CN111831365A (en) Interface route forwarding method, system, computer equipment and readable storage medium
CN111198797B (en) Operation monitoring method and device and operation analysis method and device
CN112579453A (en) Task testing method, device, equipment and storage medium
US12346733B2 (en) Batch processing and error resolution management
CN105426751A (en) Method and device for preventing system time from being tampered
CN114090294A (en) Json-based interaction and verification method, system and equipment
CN116755971A (en) Application program interface detection method and device, computer equipment and storage medium
CN116755719A (en) Data processing method, device and data processing system of application component
CN113407940B (en) Script detection method, script detection device, storage medium and computer equipment
CN116680699A (en) Vulnerability priority ordering system, vulnerability priority ordering method, computer equipment and storage medium
US8914895B1 (en) Managing verification of input data
US20140201839A1 (en) Identification and alerting of network devices requiring special handling maintenance procedures
KR20150105271A (en) Malicious code blocking method, handheld device blocking the malicious code at kernel level and download server storing program of the malicious code blocking method
CN114185804B (en) Interface testing method and device and terminal equipment
CN117762430B (en) Processing method and device based on application program, computer equipment and storage medium
CN111523115A (en) Information determination method, function calling method and electronic equipment

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