Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

REST unified verification method, device, device and readable storage medium

A verification method and storage medium technology, which is applied in the REST unified verification method, equipment and readable storage media, and the field of devices, which can solve problems such as time-consuming and labor-intensive, inability to guarantee the accuracy of verification results, code repetition, etc.

Active Publication Date: 2019-02-12
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, sometimes different verification methods are developed due to different values, which is very time-consuming and labor-intensive, and the development workload is heavy and cumbersome
Moreover, when different verification methods are developed by multiple people, it is easy to cause code duplication, especially when there are many interfaces, the verification of parameters is more cumbersome, and the accuracy of the verification results cannot be guaranteed.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • REST unified verification method, device, device and readable storage medium
  • REST unified verification method, device, device and readable storage medium
  • REST unified verification method, device, device and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] Please refer to figure 1 , figure 1 It is a flowchart of a REST unified verification method in an embodiment of the present invention, and the method includes the following steps:

[0058] S101. Receive a REST request.

[0059] The technical solutions provided by the embodiments of the present invention can be applied to software systems using REST. Because the REST request is an operation request to adjust the REST, and the REST matches the URI one by one, so the REST request can be considered as a request to perform an operation corresponding to the content in a certain URI.

[0060] The REST request may be a request sent by the user on the client to add, modify, adjust or view URL content. For example, it may be a request to modify a user name, a request to delete a browsing record, or a request to view a certain picture. It should be noted that, in this application, neither the object of the REST request operation nor the specific content of the REST request is ...

Embodiment 2

[0115] In order for those skilled in the art to understand the technical solutions provided by the embodiments of the present invention, the technical solutions provided by the embodiments of the present invention will be described in detail below with specific application examples and specific parameters.

[0116] Please refer to figure 2 , figure 2 When creating a format object during the development process, a schematic diagram of the content of the created format file, where:

[0117] 1) "protocol": Indicates the supported protocol, and supports HTTP, HTTPS, BOTH, BOTH among them, protocol, the default value (unmarked) is BOTH;

[0118] 2) "method": indicates the set of supported HTTP methods. The value of the array is not case-sensitive. The value of the array element can be get, put, post, patch, delete, etc., and all methods are supported by default;

[0119] 3) "check_token": Indicates whether to verify the TOKEN, possible values: yes or no, the default value is ye...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a REST unified verification method, which comprises the following steps: receiving a REST request; Judging whether there is a target format object corresponding to the REST request in the preset format tree; In the preset format tree, the nodes corresponding to each REST interface correspond to a format object, and the format object includes verification parameters corresponding to each verification item. If so, the target format object is obtained; The REST request is checked by using the checkout parameters corresponding to each checkout item of the target format object. When receiving a REST request, the parameter verification of various REST requests can be smoothly completed, that is, the RSET unified verification is realized, the development process is simplified, the calling of functions or methods is reduced, and the accuracy of REST verification results can be effectively improved. The invention also discloses a REST unified verification device, a device and a readable storage medium, which have corresponding technical effects.

Description

technical field [0001] The invention relates to the technical field of software, in particular to a REST unified verification method, device, equipment and a readable storage medium. Background technique [0002] REST (Representational State Transfer, representational state transfer) was born in the period of high development of the Internet. It is stateless, easy to expand, and more adaptable to the multi-system and multi-architecture of the Internet. It has been widely used. In particular, it is widely used in cloud services, storage systems and other fields. [0003] After receiving the REST request, the REST server needs to verify the correctness of the REST request, and then execute the request. However, due to the variety of REST interfaces, it also leads to a variety of REST parameters, and it is difficult to find a unified verification method. At present, REST parameter verification generally provides different parameter verification according to different REST int...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
CPCG06F11/3604
Inventor 高瑞胜赵鹏
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products