CN112306879A - Interface parameter checking method, device, equipment and storage medium - Google Patents

Interface parameter checking method, device, equipment and storage medium Download PDF

Info

Publication number
CN112306879A
CN112306879A CN202011204251.3A CN202011204251A CN112306879A CN 112306879 A CN112306879 A CN 112306879A CN 202011204251 A CN202011204251 A CN 202011204251A CN 112306879 A CN112306879 A CN 112306879A
Authority
CN
China
Prior art keywords
parameter
interface
information
verification
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011204251.3A
Other languages
Chinese (zh)
Inventor
孙佳伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011204251.3A priority Critical patent/CN112306879A/en
Publication of CN112306879A publication Critical patent/CN112306879A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application

Abstract

The invention relates to the technical field of big data, and discloses an interface parameter checking method, device, equipment and storage medium, which are used for improving the checking efficiency of interface parameters. The interface parameter checking method comprises the following steps: acquiring a plurality of interface parameter documents, and determining corresponding verified parameter information based on each interface parameter document to obtain a plurality of parameter verification information; determining a plurality of target interface identification information, and respectively setting parameter verification rules for the plurality of target interface identification information; determining a target calling interface and to-be-verified access information, intercepting the target calling interface through section-oriented programming, and acquiring corresponding target parameter verification information; and performing parameter verification on the to-be-verified access information through the parameter verification rule and the target parameter verification information, and executing the to-be-called function corresponding to the target calling interface to obtain an execution result when the verification result is that the verification is passed. In addition, the invention also relates to a block chain technology, and a plurality of parameter verification information can be stored in the block chain nodes.

Description

Interface parameter checking method, device, equipment and storage medium
Technical Field
The invention relates to the field of risk management and control of big data technology, in particular to an interface parameter verification method, device, equipment and storage medium.
Background
In the development process of business requirements, interaction with other systems is often required. The interface parameter document is a standard of interaction between systems, a service side needs to develop an interface according to the interface parameter document, and a consumer side needs to write codes according to the interface parameter document for calling. When receiving the call request, the service side needs to check the interface access parameters, for example, whether the mandatory field is missing, whether the field type is correct, and whether the character string length is too long.
The existing interface checking method only checks the mandatory field generally, and does not check other contents. For example, an exception that fails to save to the database due to a field being too long may not be identified, resulting in a failure to store the database. And adding a Data Transfer Object (DTO) for each interface, writing a note on each field in the DTO through a self-defined note, specifying whether the field needs to be filled, the field type and the field length information, and finally analyzing the attributes through a reflection method for verification when a request is received. However, the method adds corresponding DTO to each interface and adds comments to each field, which has the problem of checking code redundancy, and if the number of parameter fields is large, the problems of low comment adding efficiency and low checking efficiency exist.
Disclosure of Invention
The invention provides an interface parameter checking method, device, equipment and storage medium, which are used for improving the interface parameter checking efficiency and reducing the redundancy of interface parameter checking codes.
In order to achieve the above object, a first aspect of the present invention provides an interface parameter checking method, including: when a file uploading request is received, acquiring a plurality of interface parameter documents according to the file uploading request, determining verified parameter information corresponding to each interface parameter document based on parameter configuration information of each interface parameter document to obtain a plurality of parameter verification information, and caching the plurality of parameter verification information; when a rule configuration request is received, determining a plurality of target interface identification information according to the rule configuration request, and respectively setting parameter verification rules for the plurality of target interface identification information through section-oriented programming; when an interface calling request is received, determining a target calling interface and to-be-verified access information by using the interface calling request, intercepting the target calling interface through the section-oriented programming, and acquiring target parameter verification information corresponding to the target calling interface; and performing parameter verification on the to-be-verified access information through the parameter verification rule and the target parameter verification information to obtain a verification result, executing the to-be-called function corresponding to the target calling interface when the verification result is that verification is passed, obtaining an execution result, and sending the execution result to the target terminal.
Optionally, in a first implementation manner of the first aspect of the present invention, when receiving a file upload request, obtaining a plurality of interface parameter documents according to the file upload request, determining verified parameter information corresponding to each interface parameter document based on parameter configuration information of each interface parameter document, obtaining a plurality of parameter verification information, and caching the plurality of parameter verification information, where the method includes: when a file uploading request is received, analyzing the file uploading request to obtain a plurality of interface parameter documents, and storing the plurality of interface parameter documents into a preset verification queue, wherein each interface parameter document comprises corresponding interface identification information; reading each interface parameter document according to the queue sequence through the preset verification queue, calling a parameter template matched with each interface parameter document, and analyzing and verifying parameter configuration information in each interface parameter document to obtain a plurality of verification results; when any one verification result is that the verification fails, determining that the file uploading fails, and recording an interface parameter document which fails in the verification into a relational database; when all the verification results pass the verification, acquiring verified parameter information corresponding to each interface parameter document from the parameter configuration information of each interface parameter document; performing data encapsulation on the verified parameter information corresponding to each interface parameter document according to a preset data format to obtain encapsulation parameter information corresponding to a plurality of interface parameter documents; mapping the packaging parameter information corresponding to the plurality of interface parameter documents and the corresponding interface identification information to obtain a plurality of parameter verification information, and updating the plurality of parameter verification information into a preset database, wherein the preset database comprises an internal memory database and a relational database.
Optionally, in a second implementation manner of the first aspect of the present invention, when receiving a rule configuration request, determining multiple pieces of target interface identification information according to the rule configuration request, and setting parameter verification rules for the multiple pieces of target interface identification information through facet-oriented programming respectively includes: when a rule configuration request is received, performing parameter analysis on the rule configuration request to obtain interface storage directory information, and inquiring a plurality of target interface identification information and parameter verification rules from the preset database according to the interface storage directory information; and establishing a frame tangent plane by means of tangent plane-oriented programming, and configuring the target interface identification information and the parameter verification rule in the spring tangent plane in a correlation manner.
Optionally, in a third implementation manner of the first aspect of the present invention, when receiving an interface call request, determining a target call interface and entry parameter information to be verified by using the interface call request, intercepting the target call interface through the facet-oriented programming, and acquiring target parameter verification information corresponding to the target call interface, includes: when an interface calling request is received, analyzing the interface calling request to obtain a target calling interface and to-be-verified access parameter information; intercepting a function to be called corresponding to the target calling interface in the spring section, and inquiring initial parameter verification information corresponding to the target calling interface from the memory database; judging whether the initial parameter verification information is a null value; if the initial parameter verification information is a null value, reading target parameter configuration information corresponding to the target calling interface from the relational database, and caching the target parameter configuration information into the memory database; and if the initial parameter verification information is not a null value, setting the initial parameter verification information as target parameter configuration information corresponding to the target calling interface.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the performing, by using the parameter verification rule and the target parameter verification information, parameter verification on the to-be-verified access information to obtain a verification result, executing, when the verification result is that verification passes, the to-be-called function corresponding to the target calling interface to obtain an execution result, and sending the execution result to the target terminal includes: performing data analysis on the to-be-verified access information according to a preset data format to obtain multiple key value pair information; calling the parameter verification rule, and performing entry verification on each key value pair information according to the target parameter verification information; when any key value fails to verify the information, generating prompt information and returning the prompt information to the target terminal, wherein the prompt information is used for prompting that the access configuration of the target calling interface is abnormal; and when all the key value pair information passes verification, executing the function to be called corresponding to the target calling interface through the section-oriented programming to obtain an execution result, and sending the execution result to the target terminal.
Optionally, in a fifth implementation manner of the first aspect of the present invention, before the receiving a file upload request, obtaining a plurality of interface parameter documents according to the file upload request, determining verified parameter information corresponding to each interface parameter document based on parameter configuration information of each interface parameter document, obtaining a plurality of parameter verification information, and caching the plurality of parameter verification information, the interface parameter verification method further includes: receiving an interface parameter configuration request, and extracting parameter information to be configured from the interface parameter configuration request; and carrying out data analysis and packaging on the parameter information to be configured to obtain a converted parameter data set, and generating an export file based on the converted parameter data set.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after the parameter verification is performed on the to-be-verified access information according to the parameter verification rule and the target parameter verification information to obtain a verification result, and when the verification result is that verification passes, the to-be-called function corresponding to the target calling interface is executed to obtain an execution result, and the execution result is sent to the target terminal, the interface parameter verification method further includes: when the execution result is execution failure, re-executing the function to be called corresponding to the target calling interface according to a preset retry number to obtain a retry result, and sending the retry result to the target terminal; and acquiring execution failure information from the execution result or the retry result, and recording the execution failure information into a preset operation log.
A second aspect of the present invention provides an interface parameter checking apparatus, including: the acquisition module is used for acquiring a plurality of interface parameter documents according to a file uploading request when receiving the file uploading request, determining verified parameter information corresponding to each interface parameter document based on the parameter configuration information of each interface parameter document to obtain a plurality of parameter verification information, and caching the plurality of parameter verification information; the setting module is used for determining a plurality of target interface identification information according to the rule configuration request when receiving the rule configuration request, and respectively setting parameter verification rules for the plurality of target interface identification information through section-oriented programming; the intercepting module is used for determining a target calling interface and to-be-verified access information by using the interface calling request when receiving the interface calling request, intercepting the target calling interface through the section-oriented programming, and acquiring target parameter verification information corresponding to the target calling interface; and the verification module is used for performing parameter verification on the to-be-verified access parameter information through the parameter verification rule and the target parameter verification information to obtain a verification result, executing the to-be-called function corresponding to the target calling interface when the verification result is that verification is passed to obtain an execution result, and sending the execution result to the target terminal.
Optionally, in a first implementation manner of the second aspect of the present invention, the obtaining module is specifically configured to: when a file uploading request is received, analyzing the file uploading request to obtain a plurality of interface parameter documents, and storing the plurality of interface parameter documents into a preset verification queue, wherein each interface parameter document comprises corresponding interface identification information; reading each interface parameter document according to the queue sequence through the preset verification queue, calling a parameter template matched with each interface parameter document, and analyzing and verifying parameter configuration information in each interface parameter document to obtain a plurality of verification results; when any one verification result is that the verification fails, determining that the file uploading fails, and recording an interface parameter document which fails in the verification into a relational database; when all the verification results pass the verification, acquiring verified parameter information corresponding to each interface parameter document from the parameter configuration information of each interface parameter document; performing data encapsulation on the verified parameter information corresponding to each interface parameter document according to a preset data format to obtain encapsulation parameter information corresponding to a plurality of interface parameter documents; mapping the packaging parameter information corresponding to the plurality of interface parameter documents and the corresponding interface identification information to obtain a plurality of parameter verification information, and updating the plurality of parameter verification information into a preset database, wherein the preset database comprises an internal memory database and a relational database.
Optionally, in a second implementation manner of the second aspect of the present invention, the setting module is specifically configured to: when a rule configuration request is received, performing parameter analysis on the rule configuration request to obtain interface storage directory information, and inquiring a plurality of target interface identification information and parameter verification rules from the preset database according to the interface storage directory information; and establishing a frame tangent plane by means of tangent plane-oriented programming, and configuring the target interface identification information and the parameter verification rule in the spring tangent plane in a correlation manner.
Optionally, in a third implementation manner of the second aspect of the present invention, the intercepting module is specifically configured to: when an interface calling request is received, analyzing the interface calling request to obtain a target calling interface and to-be-verified access parameter information; intercepting a function to be called corresponding to the target calling interface in the spring section, and inquiring initial parameter verification information corresponding to the target calling interface from the memory database; judging whether the initial parameter verification information is a null value; if the initial parameter verification information is a null value, reading target parameter configuration information corresponding to the target calling interface from the relational database, and caching the target parameter configuration information into the memory database; and if the initial parameter verification information is not a null value, setting the initial parameter verification information as target parameter configuration information corresponding to the target calling interface.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the verification module is specifically configured to: performing data analysis on the to-be-verified access information according to a preset data format to obtain multiple key value pair information; calling the parameter verification rule, and performing entry verification on each key value pair information according to the target parameter verification information; when any key value fails to verify the information, generating prompt information and returning the prompt information to the target terminal, wherein the prompt information is used for prompting that the access configuration of the target calling interface is abnormal; and when all the key value pair information passes verification, executing the function to be called corresponding to the target calling interface through the section-oriented programming to obtain an execution result, and sending the execution result to the target terminal.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the interface parameter checking apparatus further includes: the extraction module is used for receiving an interface parameter configuration request and extracting the information of the parameters to be configured from the interface parameter configuration request; and the export module is used for carrying out data analysis and encapsulation on the parameter information to be configured to obtain a converted parameter data set and generating an export file based on the converted parameter data set.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the interface parameter checking apparatus further includes: the retry module is used for re-executing the function to be called corresponding to the target calling interface according to a preset retry number when the execution result is that the execution fails, obtaining a retry result, and sending the retry result to the target terminal; and the recording module is used for acquiring execution failure information from the execution result or the retry result and recording the execution failure information into a preset operation log.
A third aspect of the present invention provides an interface parameter checking device, including: a memory and at least one processor, the memory having instructions stored therein; the at least one processor calls the instructions in the memory to cause the interface parameter verification device to execute the interface parameter verification method.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the above-mentioned interface parameter checking method.
In the technical scheme provided by the invention, when a file uploading request is received, a plurality of interface parameter documents are obtained according to the file uploading request, verified parameter information corresponding to each interface parameter document is determined based on parameter configuration information of each interface parameter document, a plurality of parameter verification information is obtained, and the plurality of parameter verification information is cached; when a rule configuration request is received, determining a plurality of target interface identification information according to the rule configuration request, and respectively setting parameter verification rules for the plurality of target interface identification information through section-oriented programming; when an interface calling request is received, determining a target calling interface and to-be-verified access information by using the interface calling request, intercepting the target calling interface through the section-oriented programming, and acquiring target parameter verification information corresponding to the target calling interface; and performing parameter verification on the to-be-verified access information through the parameter verification rule and the target parameter verification information to obtain a verification result, executing the to-be-called function corresponding to the target calling interface when the verification result is that verification is passed, obtaining an execution result, and sending the execution result to the target terminal. In the embodiment of the invention, parameter configuration information of the interfaces is acquired by analyzing a plurality of interface parameter documents, a uniform interface parameter check rule is set for the plurality of interfaces by section-oriented programming, the interface parameter check and the interface development are standardized, and abnormal parameters are intercepted, so that code operation errors caused by abnormal parameters are avoided, the maintenance and management of interface parameters are facilitated, the check efficiency and the maintenance efficiency of the interface parameters are improved, and the redundancy of the interface parameter check codes is reduced.
Drawings
Fig. 1 is a schematic diagram of an embodiment of an interface parameter checking method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of another embodiment of an interface parameter checking method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an embodiment of an interface parameter checking apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another embodiment of the interface parameter verification apparatus according to the embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of an interface parameter checking device in an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides an interface parameter verification method, an interface parameter verification device, interface parameter verification equipment and a storage medium, which are used for acquiring parameter configuration information of interfaces by analyzing a plurality of interface parameter documents, setting a uniform interface parameter verification rule for a plurality of interfaces by section-oriented programming, and improving the verification efficiency and the interface maintenance efficiency of interface parameters.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, an embodiment of the interface parameter checking method in the embodiment of the present invention includes:
101. when a file uploading request is received, a plurality of interface parameter documents are obtained according to the file uploading request, verified parameter information corresponding to each interface parameter document is determined based on parameter configuration information of each interface parameter document, a plurality of parameter verification information is obtained, and the plurality of parameter verification information is cached.
Each interface parameter document is a parameter verification scene definition file preset according to a preset document parameter template, and includes corresponding interface parameter information, that is, corresponding parameter configuration information, including field identification, field name, field type, field length, and whether the field is a mandatory item, and may also include other parameter items, which is not limited herein. The file extension of each interface parameter document may be. xls or. xlsx, and is not limited herein.
Specifically, the server receives a plurality of interface parameter document uploading requests, and analyzes corresponding interface parameter documents according to the plurality of interface parameter document uploading requests respectively to obtain corresponding parameter configuration information; the method comprises the steps that a server obtains a preset parameter template, parameter format and null value verification is conducted on parameter configuration information of each interface parameter document according to the preset parameter template, when the corresponding parameter configuration information is determined to be all correct, a plurality of pieces of parameter verification information are obtained, the plurality of pieces of parameter verification information are stored in a memory database, the memory database can be a remote service dictionary redis or a mapping map, data storage is conducted in a key value pair mode, other databases can be used, and the specific situation is not limited here.
It is to be understood that the execution subject of the present invention may be an interface parameter checking apparatus, and may also be a terminal or a server, which is not limited herein. The embodiment of the present invention is described by taking a server as an execution subject.
102. When a rule configuration request is received, determining a plurality of target interface identification information according to the rule configuration request, and respectively setting parameter verification rules for the plurality of target interface identification information through section-oriented programming.
The AOP (aspect oriented programming) is used for implementing unified maintenance of program functions according to a pre-compiling mode and a running-period dynamic proxy. It is often used in daily development to record logs, function traces, transactions and permissions. The same check function does not need to be added for each interface, and redundant codes are reduced.
Specifically, when a rule configuration request is received, the server determines a plurality of target interface identification information from the rule configuration request; the server acquires a plurality of preset interfaces from a preset configuration information table according to the identification information of the target interfaces; the server creates a frame spring section by section-oriented programming, and sets the same verification codes corresponding to the plurality of preset interfaces in the spring section respectively to obtain the parameter verification rule.
103. When an interface calling request is received, the interface calling request is utilized to determine a target calling interface and to-be-verified access information, the target calling interface is intercepted through section-oriented programming, and target parameter verification information corresponding to the target calling interface is obtained.
The interface calling request corresponds to the target interface one to one, and the calling interface request may include identification information of the target interface, for example, the calling interface request includes name information of the target interface or address information of the target interface, which is not limited herein. Specifically, when the server receives an interface calling request, the server analyzes the interface calling request to obtain a target calling interface and to-be-verified access information; the server intercepts a target calling interface through section-oriented programming; and the server reads the target parameter verification information corresponding to the target calling interface from the memory database. It should be noted that, the server reads the parameter configuration information corresponding to the target interface from the memory database according to the interface call request, so that the data processing efficiency is improved.
104. And performing parameter verification on the to-be-verified access information through the parameter verification rule and the target parameter verification information to obtain a verification result, executing the to-be-called function corresponding to the target calling interface when the verification result is that the verification is passed, obtaining an execution result, and sending the execution result to the target terminal.
The entry information to be checked may be assembled in a preset data format, where the preset data format may be a JS object notation (JSON) format or another markup language YAML format, and is not limited herein.
Specifically, the server compares the target parameter verification information with the to-be-verified access information one by one through a parameter verification rule to obtain a verification result; when any one parameter fails to be verified, the server determines that the verification result is that the verification fails; when all the parameters are successfully verified, the server determines that the verification result is that the verification is passed, and when the verification result is that the verification is passed, the server executes the function to be called corresponding to the target calling interface to obtain an execution result; the server packages the data of the execution result to obtain packaged data; and the server calls a preset interface and sends the packaged data to the target terminal.
In the embodiment of the invention, parameter configuration information of the interfaces is acquired by analyzing a plurality of interface parameter documents, a uniform interface parameter check rule is set for the plurality of interfaces by section-oriented programming, the interface parameter check and the interface development are standardized, and abnormal parameters are intercepted, so that code operation errors caused by abnormal parameters are avoided, the maintenance and management of interface parameters are facilitated, the check efficiency and the maintenance efficiency of the interface parameters are improved, and the redundancy of the interface parameter check codes is reduced.
Referring to fig. 2, another embodiment of the interface parameter checking method according to the embodiment of the present invention includes:
201. when a file uploading request is received, a plurality of interface parameter documents are obtained according to the file uploading request, verified parameter information corresponding to each interface parameter document is determined based on parameter configuration information of each interface parameter document, a plurality of parameter verification information is obtained, and the plurality of parameter verification information is cached.
The interface parameter documents are corresponding parameter configuration information which is preset field definition information, and each line of each interface parameter document corresponds to a parameter input field. Optionally, the first column in each interface parameter document is a field identifier, the attribute value corresponding to the field identifier may be a single-layer structure or a multilayer structure, and the multilayer structure performs character string splicing by using ". times". Such as businda. The second column in each interface parameter document is a field name, and the attribute value corresponding to the field name may be a chinese character or an english character, for example, the field name is an "authorization code". The third column in each interface parameter document is a field type, such as string, integer, floating point, timestamp, and boolean, for example. The fourth column in each interface parameter document is the field length (maximum length), and if the field type is string, the column needs to be filled in. The fifth column in each interface parameter document is a constraint, namely a must-fill identifier (whether must-fill). For example, the server may use R to represent mandatory padding and the server may use O to represent unnecessary padding. Each interface parameter document may also include description information for describing details of each parameter (field), which is not limited herein.
Optionally, when a file uploading request is received, the server analyzes the file uploading request to obtain a plurality of interface parameter documents, and stores the plurality of interface parameter documents into a preset verification queue, where each interface parameter document includes corresponding interface identification information; the server reads each interface parameter document according to the queue sequence through a preset verification queue, calls a parameter template matched with each interface parameter document, and analyzes and verifies the parameter configuration information in each interface parameter document to obtain a plurality of verification results; when any one verification result is that the verification fails, the server determines that the file uploading fails and records the interface parameter document which fails in the verification into the relational database; when all the verification results pass, the server acquires verified parameter information corresponding to each interface parameter document from the parameter configuration information of each interface parameter document; the server performs data encapsulation on the verified parameter information corresponding to each interface parameter document according to a preset data format to obtain encapsulation parameter information corresponding to a plurality of interface parameter documents; the server maps the packaging parameter information corresponding to the interface parameter documents and the corresponding interface identification information to obtain a plurality of parameter verification information, and updates the parameter verification information into a preset database, wherein the preset database comprises an internal memory database and a relational database.
Further, the server obtains the matched parameter templates, checks whether the header names and the header sequences in the corresponding parameter configuration information are respectively consistent with the matched parameter templates, traverses the corresponding parameter configuration information when the header names and the header sequences in the corresponding parameter configuration information are respectively consistent with the matched parameter templates, judges whether the corresponding parameter configuration information has abnormal configuration information, determines that the corresponding parameter configuration information is all correct when the corresponding parameter configuration information does not have the abnormal configuration information, obtains a plurality of parameter verification information, and stores the plurality of parameter verification information into the memory database. The memory database may be redis or memcache, and is not limited herein. Further, the server may also be stored in a relational database, which is not limited herein.
Further, the server receives an interface parameter configuration request, and the server extracts the information of the parameters to be configured from the interface parameter configuration request; and the server analyzes and encapsulates the data of the parameter information to be configured to obtain a converted parameter data set, and generates an export file (comprising a plurality of interface parameter documents) based on the converted parameter data set.
202. When a rule configuration request is received, determining a plurality of target interface identification information according to the rule configuration request, and respectively setting parameter verification rules for the plurality of target interface identification information through section-oriented programming.
For the rule configuration request, the same parameter check rule is set for the plurality of target interface identification information, and the redundancy of check codes is reduced. Optionally, when the server receives the rule configuration request, the server performs parameter analysis on the rule configuration request to obtain interface storage directory information, and queries a plurality of target interface identification information and parameter verification rules from a preset database according to the interface storage directory information; the server establishes a frame tangent plane through tangent plane-oriented programming, and associates and configures target interface identification information and parameter verification rules in a spring tangent plane.
203. When the server receives the interface calling request, the target calling interface and the to-be-verified access information are determined by the interface calling request, the target calling interface is intercepted through the section-oriented programming, and target parameter verification information corresponding to the target calling interface is obtained.
The interface call request includes interface identification information, interface call information, interface address information, interface function information, interface entry parameter information, and interface return value information, and the interface information may also include other information, which is not limited herein. Optionally, when the server receives the interface calling request, the server analyzes the interface calling request to obtain a target calling interface and the to-be-verified access information; the server intercepts a function to be called corresponding to a target calling interface in a spring section, and queries initial parameter verification information corresponding to the target calling interface from a memory database, wherein the corresponding initial parameter verification information comprises all configured field information corresponding to the target interface, including whether filling is necessary, a field type and a field length, and can also be other self-defined configuration information, and the specific details are not limited herein; the server judges whether the initial parameter verification information is a null value; if the initial parameter verification information is a null value, the server reads target parameter configuration information corresponding to the target calling interface from the relational database and caches the target parameter configuration information into the memory database; and if the initial parameter verification information is not a null value, the server sets the initial parameter verification information as target parameter configuration information corresponding to the target calling interface.
For example, the interface _ document.xlsxx of the interface parameter document is uploaded, and the field information in the interface parameter document is stored in the memory database in advance. When the server receives a request for calling the target calling interface, the server firstly analyzes an interface access reference message (for example, in a JSON format) to obtain keys and values (to-be-checked access reference information) of all parameter fields, wherein the keys contain parent-child organization relations, for example, the organization code parameters are header. Then the server stores the to-be-verified access information into the memory map; secondly, the server reads out target parameter verification information corresponding to the target calling interface from a preset database, namely verified parameter configuration information corresponding to the uploaded interface parameter document.
204. And performing parameter verification on the to-be-verified access information through the parameter verification rule and the target parameter verification information to obtain a verification result, executing the to-be-called function corresponding to the target calling interface when the verification result is that the verification is passed, obtaining an execution result, and sending the execution result to the target terminal.
Wherein, the execution result comprises the execution success and the execution failure. Optionally, the server performs data analysis on the to-be-verified access information according to a preset data format to obtain multiple key value pair information; the server calls a parameter verification rule and performs entry verification on each key value pair information according to the target parameter verification information; when any key value fails to verify the information, the server generates prompt information and returns the prompt information to the target terminal, wherein the prompt information is used for prompting that the access configuration of the target calling interface is abnormal; and when all the information is verified by the plurality of key values, the server executes the function to be called corresponding to the target calling interface by the section-oriented programming to obtain an execution result, and sends the execution result to the target terminal. It should be noted that, the server obtains the one-to-one matching between each key value pair information and each parameter field in the corresponding parameter configuration information.
For example, the parameter field header. Firstly, the server inquires whether the parameter field exists in the cached target parameter verification information; if the parameter field does not exist in the target parameter verification information, the server determines that the checking of the mandatory fill attribute of the header. If the parameter field exists in the target parameter verification information, the server reads the value of the target parameter verification information from the target parameter verification information, and the server adopts a preset key word function instance of to check whether the type of the value is a string type; if the value type is not the string type, the server determines that the parameter type check fails; if the value type is string type, the server further judges whether the value length is greater than 24; and if the length of the parameter value is greater than 24, the server determines that the parameter length check fails. If the verification is successful, the server determines that the parameter field is verified. The server continuously checks other parameter fields in the reference information to be checked one by one according to the checking logic. If all parameter fields are checked to pass (all information is checked to pass by a plurality of key values), the server determines that the entry requested by the interface passes the check. If there is a check failure, the service determines that the interface entry fails to check (any key value does not pass the information check).
Further, in the process that the server executes the function to be called corresponding to the target interface, the server may further perform data encapsulation from the return data of the function to be called corresponding to the target interface through the facet-oriented programming, so as to obtain the information of the success message or the information of the failure message, and obtain an execution result, where the execution result includes success execution and failure execution. When the execution result includes the execution failure, the server performs step 205.
205. And when the execution result is execution failure, re-executing the function to be called corresponding to the target calling interface according to the preset retry number to obtain a retry result, and sending the retry result to the target terminal.
The preset retry number is a positive integer, for example, the preset retry number is 3. That is, when the execution result is that the execution fails, the server re-executes the function to be called corresponding to the target calling interface according to the preset retry number, until the preset retry number is greater than the preset threshold number, the server determines that the retry process is ended, obtains the retry result, and sends the retry result to the target terminal. Further, when the retry result is that the execution fails, the server generates and transmits the warning information to the target terminal. The server calls the retry strategy to improve the success rate of the interface access request, reduce the execution of an interception mechanism and improve the processing efficiency of the interface access.
206. And acquiring the execution failure information from the execution result or the retry result, and recording the execution failure information into a preset operation log.
Further, when the server detects that the execution result or the retry result is an execution failure, the server prints a message to the call interface request, generates corresponding log information, and records the corresponding log information into a preset operation log, so that the target person performs data exception troubleshooting according to the corresponding log information.
In the embodiment of the invention, parameter configuration information of the interfaces is acquired by analyzing a plurality of interface parameter documents, a uniform interface parameter check rule is set for the plurality of interfaces by section-oriented programming, the interface parameter check and the interface development are standardized, and abnormal parameters are intercepted, so that code operation errors caused by abnormal parameters are avoided, the maintenance and management of interface parameters are facilitated, the check efficiency and the maintenance efficiency of the interface parameters are improved, and the redundancy of the interface parameter check codes is reduced.
The above description of the interface parameter checking method in the embodiment of the present invention, and the following description of the interface parameter checking device in the embodiment of the present invention refer to fig. 3, where an embodiment of the interface parameter checking device in the embodiment of the present invention includes:
the obtaining module 301 is configured to, when receiving a file upload request, obtain a plurality of interface parameter documents according to the file upload request, determine verified parameter information corresponding to each interface parameter document based on parameter configuration information of each interface parameter document, obtain a plurality of parameter verification information, and cache the plurality of parameter verification information;
a setting module 302, configured to determine, when a rule configuration request is received, a plurality of pieces of target interface identification information according to the rule configuration request, and set a parameter verification rule for each of the plurality of pieces of target interface identification information by facet-oriented programming;
the intercepting module 303 is configured to determine a target calling interface and entry parameter information to be verified by using the interface calling request when receiving the interface calling request, intercept the target calling interface through section-oriented programming, and obtain target parameter verification information corresponding to the target calling interface;
the verification module 304 is configured to perform parameter verification on the to-be-verified access information through the parameter verification rule and the target parameter verification information to obtain a verification result, execute the to-be-called function corresponding to the target calling interface when the verification result is that verification is passed, obtain an execution result, and send the execution result to the target terminal.
Further, the plurality of parameter verification information are stored in the blockchain database, which is not limited herein.
In the embodiment of the invention, parameter configuration information of the interfaces is acquired by analyzing a plurality of interface parameter documents, a uniform interface parameter check rule is set for the plurality of interfaces by section-oriented programming, the interface parameter check and the interface development are standardized, and abnormal parameters are intercepted, so that code operation errors caused by abnormal parameters are avoided, the maintenance and management of interface parameters are facilitated, the check efficiency and the maintenance efficiency of the interface parameters are improved, and the redundancy of the interface parameter check codes is reduced.
Referring to fig. 4, another embodiment of the interface parameter checking apparatus according to the embodiment of the present invention includes:
the obtaining module 301 is configured to, when receiving a file upload request, obtain a plurality of interface parameter documents according to the file upload request, determine verified parameter information corresponding to each interface parameter document based on parameter configuration information of each interface parameter document, obtain a plurality of parameter verification information, and cache the plurality of parameter verification information;
a setting module 302, configured to determine, when a rule configuration request is received, a plurality of pieces of target interface identification information according to the rule configuration request, and set a parameter verification rule for each of the plurality of pieces of target interface identification information by facet-oriented programming;
the intercepting module 303 is configured to determine a target calling interface and entry parameter information to be verified by using the interface calling request when receiving the interface calling request, intercept the target calling interface through section-oriented programming, and obtain target parameter verification information corresponding to the target calling interface;
the verification module 304 is configured to perform parameter verification on the to-be-verified access information through the parameter verification rule and the target parameter verification information to obtain a verification result, execute the to-be-called function corresponding to the target calling interface when the verification result is that verification is passed, obtain an execution result, and send the execution result to the target terminal.
Optionally, the obtaining module 301 may be further specifically configured to:
when a file uploading request is received, analyzing the file uploading request to obtain a plurality of interface parameter documents, and storing the plurality of interface parameter documents into a preset verification queue, wherein each interface parameter document comprises corresponding interface identification information;
reading each interface parameter document according to the queue sequence through a preset verification queue, calling a parameter template matched with each interface parameter document, and analyzing and verifying parameter configuration information in each interface parameter document to obtain a plurality of verification results;
when any one verification result is that the verification fails, determining that the file uploading fails, and recording an interface parameter document which fails in the verification into a relational database;
when all the verification results are verified, acquiring verified parameter information corresponding to each interface parameter document from the parameter configuration information of each interface parameter document;
performing data encapsulation on the verified parameter information corresponding to each interface parameter document according to a preset data format to obtain encapsulation parameter information corresponding to a plurality of interface parameter documents;
mapping the packaging parameter information corresponding to the plurality of interface parameter documents and the corresponding interface identification information to obtain a plurality of parameter verification information, and updating the plurality of parameter verification information into a preset database, wherein the preset database comprises an internal memory database and a relational database.
Optionally, the setting module 302 is further specifically configured to:
when a rule configuration request is received, performing parameter analysis on the rule configuration request to obtain interface storage directory information, and inquiring a plurality of target interface identification information and parameter verification rules from a preset database according to the interface storage directory information;
and establishing a frame tangent plane by facing tangent plane programming, and configuring the target interface identification information and the parameter verification rule in a spring tangent plane in an associated manner.
Optionally, the intercepting module 303 is further specifically configured to:
when an interface calling request is received, analyzing the interface calling request to obtain a target calling interface and to-be-verified access parameter information;
intercepting a function to be called corresponding to a target calling interface in a spring section, and inquiring initial parameter verification information corresponding to the target calling interface from a memory database;
judging whether the initial parameter verification information is a null value;
if the initial parameter verification information is a null value, reading target parameter configuration information corresponding to the target calling interface from the relational database, and caching the target parameter configuration information into a memory database;
and if the initial parameter verification information is not a null value, setting the initial parameter verification information as target parameter configuration information corresponding to the target calling interface.
Optionally, the checking module 304 may be further specifically configured to:
carrying out data analysis on the to-be-verified access information according to a preset data format to obtain multiple key value pair information;
calling a parameter verification rule, and performing entry verification on each key value pair information according to target parameter verification information;
when any key value fails to verify the information, generating prompt information and returning the prompt information to the target terminal, wherein the prompt information is used for prompting that the access configuration of the target calling interface is abnormal;
and when all the information is verified to pass through by the plurality of key value pairs, executing the function to be called corresponding to the target calling interface by the section-oriented programming to obtain an execution result, and sending the execution result to the target terminal.
Optionally, the interface parameter checking apparatus further includes:
an extracting module 305, configured to receive an interface parameter configuration request, and extract parameter information to be configured from the interface parameter configuration request;
and the export module 306 is configured to perform data analysis and encapsulation on the parameter information to be configured to obtain a converted parameter data set, and generate an export file based on the converted parameter data set.
Optionally, the interface parameter checking apparatus further includes:
a retry module 307, configured to re-execute the function to be called corresponding to the target call interface according to a preset retry number to obtain a retry result, and send the retry result to the target terminal when the execution result is an execution failure;
a recording module 308, configured to obtain execution failure information from the execution result or the retry result, and record the execution failure information in a preset operation log.
In the embodiment of the invention, parameter configuration information of the interfaces is acquired by analyzing a plurality of interface parameter documents, a uniform interface parameter check rule is set for the plurality of interfaces by section-oriented programming, the interface parameter check and the interface development are standardized, and abnormal parameters are intercepted, so that code operation errors caused by abnormal parameters are avoided, the maintenance and management of interface parameters are facilitated, the check efficiency and the maintenance efficiency of the interface parameters are improved, and the redundancy of the interface parameter check codes is reduced.
Fig. 3 and fig. 4 describe the interface parameter checking apparatus in the embodiment of the present invention in detail from the perspective of modularization, and the interface parameter checking apparatus in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 5 is a schematic structural diagram of an interface parameter checking apparatus according to an embodiment of the present invention, where the interface parameter checking apparatus 500 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) storing applications 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations for the interface parameter verification device 500. Further, the processor 510 may be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the interface parameter verification device 500.
The interface parameter verification device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input-output interfaces 560, and/or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, and the like. It will be appreciated by those skilled in the art that the configuration of the interface parameter verification device shown in figure 5 does not constitute a limitation of the interface parameter verification device and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and may also be a volatile computer-readable storage medium, having stored therein instructions, which, when executed on a computer, cause the computer to perform the steps of the interface parameter verification method.
The present invention further provides an interface parameter checking device, where the interface parameter checking device includes a memory and a processor, where the memory stores instructions, and when the instructions are executed by the processor, the processor executes the steps of the interface parameter checking method in each of the above embodiments.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to each embodiment of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in each of the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of each embodiment of the present invention.

Claims (10)

1. An interface parameter verification method, characterized in that the interface parameter verification method comprises:
when a file uploading request is received, acquiring a plurality of interface parameter documents according to the file uploading request, determining verified parameter information corresponding to each interface parameter document based on parameter configuration information of each interface parameter document to obtain a plurality of parameter verification information, and caching the plurality of parameter verification information;
when a rule configuration request is received, determining a plurality of target interface identification information according to the rule configuration request, and respectively setting parameter verification rules for the plurality of target interface identification information through section-oriented programming;
when an interface calling request is received, determining a target calling interface and to-be-verified access information by using the interface calling request, intercepting the target calling interface through the section-oriented programming, and acquiring target parameter verification information corresponding to the target calling interface;
and performing parameter verification on the to-be-verified access information through the parameter verification rule and the target parameter verification information to obtain a verification result, executing the to-be-called function corresponding to the target calling interface when the verification result is that verification is passed, obtaining an execution result, and sending the execution result to the target terminal.
2. The interface parameter verification method according to claim 1, wherein when receiving a file upload request, acquiring a plurality of interface parameter documents according to the file upload request, determining verified parameter information corresponding to each interface parameter document based on parameter configuration information of each interface parameter document, acquiring a plurality of parameter verification information, and caching the plurality of parameter verification information, includes:
when a file uploading request is received, analyzing the file uploading request to obtain a plurality of interface parameter documents, and storing the plurality of interface parameter documents into a preset verification queue, wherein each interface parameter document comprises corresponding interface identification information;
reading each interface parameter document according to the queue sequence through the preset verification queue, calling a parameter template matched with each interface parameter document, and analyzing and verifying parameter configuration information in each interface parameter document to obtain a plurality of verification results;
when any one verification result is that the verification fails, determining that the file uploading fails, and recording an interface parameter document which fails in the verification into a relational database;
when all the verification results pass the verification, acquiring verified parameter information corresponding to each interface parameter document from the parameter configuration information of each interface parameter document;
performing data encapsulation on the verified parameter information corresponding to each interface parameter document according to a preset data format to obtain encapsulation parameter information corresponding to a plurality of interface parameter documents;
mapping the packaging parameter information corresponding to the plurality of interface parameter documents and the corresponding interface identification information to obtain a plurality of parameter verification information, and updating the plurality of parameter verification information into a preset database, wherein the preset database comprises an internal memory database and a relational database.
3. The method of claim 2, wherein when receiving a rule configuration request, determining a plurality of target interface identification information according to the rule configuration request, and setting a parameter verification rule for each of the plurality of target interface identification information by facet-oriented programming comprises:
when a rule configuration request is received, performing parameter analysis on the rule configuration request to obtain interface storage directory information, and inquiring a plurality of target interface identification information and parameter verification rules from the preset database according to the interface storage directory information;
and establishing a frame tangent plane by means of tangent plane-oriented programming, and configuring the target interface identification information and the parameter verification rule in the spring tangent plane in a correlation manner.
4. The interface parameter verification method according to claim 3, wherein when receiving an interface call request, determining a target call interface and to-be-verified access information by using the interface call request, intercepting the target call interface through the facet-oriented programming, and acquiring target parameter verification information corresponding to the target call interface, includes:
when an interface calling request is received, analyzing the interface calling request to obtain a target calling interface and to-be-verified access parameter information;
intercepting a function to be called corresponding to the target calling interface in the spring section, and inquiring initial parameter verification information corresponding to the target calling interface from the memory database;
judging whether the initial parameter verification information is a null value;
if the initial parameter verification information is a null value, reading target parameter configuration information corresponding to the target calling interface from the relational database, and caching the target parameter configuration information into the memory database;
and if the initial parameter verification information is not a null value, setting the initial parameter verification information as target parameter configuration information corresponding to the target calling interface.
5. The interface parameter checking method according to claim 1, wherein the performing parameter checking on the to-be-checked access information according to the parameter checking rule and the target parameter verification information to obtain a checking result, and when the checking result is that the checking is passed, executing a to-be-called function corresponding to the target calling interface to obtain an execution result, and sending the execution result to the target terminal includes:
performing data analysis on the to-be-verified access information according to a preset data format to obtain multiple key value pair information;
calling the parameter verification rule, and performing entry verification on each key value pair information according to the target parameter verification information;
when any key value fails to verify the information, generating prompt information and returning the prompt information to the target terminal, wherein the prompt information is used for prompting that the access configuration of the target calling interface is abnormal;
and when all the key value pair information passes verification, executing the function to be called corresponding to the target calling interface by the section-oriented programming technology to obtain an execution result, and sending the execution result to the target terminal.
6. The interface parameter verification method according to any one of claims 1 to 5, wherein, when the file upload request is received, the interface parameter files are obtained according to the file upload request, verified parameter information corresponding to each interface parameter file is determined based on parameter configuration information of each interface parameter file, a plurality of pieces of parameter verification information are obtained, and before the plurality of pieces of parameter verification information are cached, the interface parameter verification method further includes:
receiving an interface parameter configuration request, and extracting parameter information to be configured from the interface parameter configuration request;
and carrying out data analysis and packaging on the parameter information to be configured to obtain a converted parameter data set, and generating an export file based on the converted parameter data set.
7. The interface parameter checking method according to any one of claims 1 to 5, wherein after the parameter checking is performed on the to-be-checked access information according to the parameter checking rule and the target parameter verification information to obtain a checking result, and when the checking result is that the checking is passed, the to-be-called function corresponding to the target calling interface is executed to obtain an execution result, and the execution result is sent to the target terminal, the interface parameter checking method further includes:
when the execution result is execution failure, re-executing the function to be called corresponding to the target calling interface according to a preset retry number to obtain a retry result, and sending the retry result to the target terminal;
and acquiring execution failure information from the execution result or the retry result, and recording the execution failure information into a preset operation log.
8. An interface parameter verification apparatus, comprising:
the acquisition module is used for acquiring a plurality of interface parameter documents according to a file uploading request when receiving the file uploading request, determining verified parameter information corresponding to each interface parameter document based on the parameter configuration information of each interface parameter document to obtain a plurality of parameter verification information, and caching the plurality of parameter verification information;
the setting module is used for determining a plurality of target interface identification information according to the rule configuration request when receiving the rule configuration request, and respectively setting parameter verification rules for the plurality of target interface identification information through section-oriented programming;
the intercepting module is used for determining a target calling interface and to-be-verified access information by using the interface calling request when receiving the interface calling request, intercepting the target calling interface through the section-oriented programming, and acquiring target parameter verification information corresponding to the target calling interface;
and the verification module is used for performing parameter verification on the to-be-verified access parameter information through the parameter verification rule and the target parameter verification information to obtain a verification result, executing the to-be-called function corresponding to the target calling interface when the verification result is that verification is passed to obtain an execution result, and sending the execution result to the target terminal.
9. An interface parameter verification device, comprising: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor invoking the instructions in the memory to cause the interface parameter checking device to perform the interface parameter checking method of any one of claims 1-7.
10. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the interface parameter checking method according to any one of claims 1 to 7.
CN202011204251.3A 2020-11-02 2020-11-02 Interface parameter checking method, device, equipment and storage medium Pending CN112306879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011204251.3A CN112306879A (en) 2020-11-02 2020-11-02 Interface parameter checking method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011204251.3A CN112306879A (en) 2020-11-02 2020-11-02 Interface parameter checking method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112306879A true CN112306879A (en) 2021-02-02

Family

ID=74333634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011204251.3A Pending CN112306879A (en) 2020-11-02 2020-11-02 Interface parameter checking method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112306879A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905455A (en) * 2021-02-05 2021-06-04 北京有竹居网络技术有限公司 Interface information checking method, device, equipment and storage medium
CN113568925A (en) * 2021-08-03 2021-10-29 中电金信软件有限公司 Message data conversion method and device, electronic equipment and storage medium
CN114416514A (en) * 2022-03-25 2022-04-29 南京伟测半导体科技有限公司 Automatic checking and verifying method and system based on test packaging Mapping
CN114429408A (en) * 2021-12-31 2022-05-03 中国南方电网有限责任公司 Method, device, equipment and system for checking configuration file of intelligent substation
CN116600009A (en) * 2023-05-11 2023-08-15 浙江轩毅信息技术有限公司 Interface management method based on collateral file safekeeping cabinet

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5355479A (en) * 1991-01-21 1994-10-11 Fujitsu Limited Interface conformance verification system
CN103246514A (en) * 2013-05-07 2013-08-14 汉柏科技有限公司 Method for implementing exception framework on the basis of cloud computing
US9021443B1 (en) * 2013-04-12 2015-04-28 Google Inc. Test automation API for host devices
US20170097882A1 (en) * 2015-10-06 2017-04-06 Ca, Inc. Generating Tests for Testing Software Applications
CN109344642A (en) * 2018-08-31 2019-02-15 平安科技(深圳)有限公司 Interface rules method of calibration, device, computer equipment and storage medium
CN110147261A (en) * 2019-04-15 2019-08-20 平安普惠企业管理有限公司 Parameter verification method and relevant device based on calling interface
CN111258832A (en) * 2020-01-22 2020-06-09 泰康保险集团股份有限公司 Interface parameter checking method, device, equipment and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5355479A (en) * 1991-01-21 1994-10-11 Fujitsu Limited Interface conformance verification system
US9021443B1 (en) * 2013-04-12 2015-04-28 Google Inc. Test automation API for host devices
CN103246514A (en) * 2013-05-07 2013-08-14 汉柏科技有限公司 Method for implementing exception framework on the basis of cloud computing
US20170097882A1 (en) * 2015-10-06 2017-04-06 Ca, Inc. Generating Tests for Testing Software Applications
CN109344642A (en) * 2018-08-31 2019-02-15 平安科技(深圳)有限公司 Interface rules method of calibration, device, computer equipment and storage medium
CN110147261A (en) * 2019-04-15 2019-08-20 平安普惠企业管理有限公司 Parameter verification method and relevant device based on calling interface
CN111258832A (en) * 2020-01-22 2020-06-09 泰康保险集团股份有限公司 Interface parameter checking method, device, equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
叶志鹏,等: "基于AOP的Web应用程序的安全会话管理", 武汉工程大学学报, no. 05, pages 97 - 100 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905455A (en) * 2021-02-05 2021-06-04 北京有竹居网络技术有限公司 Interface information checking method, device, equipment and storage medium
CN113568925A (en) * 2021-08-03 2021-10-29 中电金信软件有限公司 Message data conversion method and device, electronic equipment and storage medium
CN114429408A (en) * 2021-12-31 2022-05-03 中国南方电网有限责任公司 Method, device, equipment and system for checking configuration file of intelligent substation
CN114429408B (en) * 2021-12-31 2023-10-20 中国南方电网有限责任公司 Method, device, equipment and system for checking configuration file of intelligent substation
CN114416514A (en) * 2022-03-25 2022-04-29 南京伟测半导体科技有限公司 Automatic checking and verifying method and system based on test packaging Mapping
CN114416514B (en) * 2022-03-25 2022-06-24 南京伟测半导体科技有限公司 Automatic checking and verifying method and system based on test packaging Mapping
CN116600009A (en) * 2023-05-11 2023-08-15 浙江轩毅信息技术有限公司 Interface management method based on collateral file safekeeping cabinet
CN116600009B (en) * 2023-05-11 2023-11-28 浙江轩毅信息技术有限公司 Interface management method based on collateral file safekeeping cabinet

Similar Documents

Publication Publication Date Title
CN112306879A (en) Interface parameter checking method, device, equipment and storage medium
US10769228B2 (en) Systems and methods for web analytics testing and web development
CN112540923B (en) Interface parameter checking and converting method, device, equipment and storage medium
US8626778B2 (en) System and method for conversion of JMS message data into database transactions for application to multiple heterogeneous databases
CN111600909A (en) Data processing method, device, protocol conversion equipment and storage medium
CN110196971A (en) Online document edit methods, device, terminal device and storage medium
WO2022126983A1 (en) Electronic report file export method, apparatus and device, and storage medium
US9053112B2 (en) Automated data validation
CN104185845A (en) System and method for providing a binary representation of a web page
CN112039979A (en) Distributed data cache management method, device, equipment and storage medium
CN110222028B (en) Data management method, device, equipment and storage medium
CN104252501A (en) Computing equipment and method for executing database operating command
CN111064725A (en) Code zero intrusion interface verification method and device
CN112615759B (en) Full link voltage measurement assembly, full link voltage measurement method and device
CN112527421A (en) Service calling method, device, equipment and storage medium
CN116389490A (en) Receiving device and task execution method
US11366802B1 (en) Batch undo processing for transaction rollbacks in a multi-writer database
US11797518B2 (en) Registering additional type systems using a hub data model for data processing
CN114139220A (en) Data verification method and device
CN111651417B (en) Log processing method and device
US10956659B1 (en) System for generating templates from webpages
US20150095371A1 (en) Systems, Methods and Program Instructions for Calling a Database Function with a URL
US11138268B2 (en) Systems and methods for improved transactional mainframes
CN112052256A (en) Multi-version request returning method and device, computer equipment and readable storage medium
US8230224B2 (en) Transmitting security data in multipart communications over a network

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