A data verification method and device

By introducing sections and pre-set data verification rules in the application, verifying the interface response data, solving the problem of hard coding and poor performance of data verification rules in the prior art, and achieving flexible adjustment of data verification rules and improve interface performance.

CN113778725BActive Publication Date: 2025-02-21BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010495396.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-03
Publication Date
2025-02-21
Estimated Expiration
2040-06-03

AI Technical Summary

Technical Problem

In the prior art, data verification rules are hard-coded in applications and cannot be flexibly adjusted according to changes in business scenarios, and data verification is performed every time the interface is called, which reduces the interface performance.

Method used

Through the sections and pre-set data verification rules, the response data output from the annotated interface is checked, and the data verification process is redefined, so that the data verification rules are decoupled from the application. When the business scenario changes, you can flexibly adjust the data verification rules and define the tangent point through annotations to avoid configuring the interface path of the configuration file.

Benefits of technology

Without changing the original code of the application, the data verification process is redefined, the data verification rules and applications are decoupled, the function of flexibly adjusting the data verification rules is realized, the interface performance is improved, and the alarm mechanism is passed Notify the operation personnel in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113778725B_ABST
    Figure CN113778725B_ABST
Patent Text Reader

Abstract

The present invention discloses a data verification method and device, and relates to the field of computer technology. A specific implementation of the method includes: creating a section, wherein the section point is set to a target interface marked with an annotation, and the section notification implements a method for verifying the response data output by the target interface; when the server interface receives an access request, the server interface is matched with the target interface set by the section point; when the server interface is determined to be the target interface, the method in the notification is executed to obtain the response data output by the server interface, and the data verification rules set for the server interface, and the response data is verified according to the data verification rules. This implementation redefines the data verification process without changing the original code of the application, and at the same time decouples the data verification rules from the application, so that the data verification rules can be flexibly adjusted when the business scenario changes.
Need to check novelty before this filing date? Find Prior Art

Citation Information

Patent Citations

  • Interface coding method, server and computer readable storage medium

    CN110413269A

  • Parameter verification method and device

    CN110765422A