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

Web API regulating and controlling method based on middleware

A middleware and interface technology, applied in the field of WebAPI control based on middleware, can solve the problems of complex structure, inconvenient control, unable to improve the uniformity, stability and security of WebAPI control, so as to reduce the amount of code and reduce access. Pressure, good effect of promoting the use value

Active Publication Date: 2016-07-20
INSPUR COMMON SOFTWARE
View PDF6 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this patent has the following disadvantages: the structure is complex, the control is inconvenient, and the unity, stability and security of WebAPI regulation cannot be improved

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
  • Web API regulating and controlling method based on middleware

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] In the middleware-based WebAPI control method of the present invention, middleware is added between the WebAPI interface and the business processing layer, and the middleware sets corresponding policies according to the access requests sent by the WebAPI interface. The access request sent by one WebAPI interface corresponds to one or Multiple strategies, the middleware checks the access requests sent by the WebAPI interface in turn according to the corresponding strategies.

[0029] as attached figure 1 As shown, the steps of the control method are as follows:

[0030] (1) The WebAPI interface sends access requests to the middleware;

[0031] (2), the middleware intercepts the access request sent by the WebAPI interface, and judges whether there is a policy restriction:

[0032] ①. If there are policy restrictions, the corresponding policies will verify the access requests sent by the WebAPI interface in turn to determine whether all corresponding policy verifications...

Embodiment 2

[0056] The following takes a certain website as an example to describe the content of middleware regulation in detail, so as to make the object, features and advantages of the present invention clearer and easier to understand.

[0057] router.all('*', blacklist verification method);

[0058] router.get(' / xxx / aaa', [strategy 1, strategy 2,..., strategy n], business processing);

[0059] Blacklist verification is performed on all access requests sent by the WebAPI interface. If the client IP or identified user identity is in the blacklist, 403 is returned to prohibit the API request; otherwise, the access request sent by the WebAPI interface is passed on.

[0060] Strategy 1: If there must be a user identity. The setting operation is: take the token in the cookie for identity verification. If the corresponding user is legal, the verification succeeds and pass the access request sent by the WebAPI interface to the subsequent policy verification; otherwise, the request is termin...

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 Web API regulating and controlling method based on middleware, and belongs to the field of Web architecture optimization.The Web API regulating and controlling method aims at achieving the uniformity, the stability and the security of Web API regulating and controlling.The Web API regulating and controlling method in the technical scheme includes the steps that the middleware is additionally arranged between a Web API and a business processing layer, and sets corresponding strategies according to the access request sent by the Web API, the access request sent by one Web API corresponds to one or more strategies, and the middleware sequentially verifies the access request sent by the Web API according to the corresponding strategies.

Description

technical field [0001] The invention relates to the field of Web architecture optimization, in particular to a middleware-based Web API control method. Background technique [0002] WebAPI is a network application program interface. In the current developed application scenarios, we often need to access Winform clients, APP programs, website programs, and WeChat applications that are currently in full swing. These data should be provided by the same service. This is the WebAPI platform we need to build. Based on the above requirements, many enterprises design the entire enterprise application system with the concept of WebAPI first. As the core of the entire link, WebAPI needs to consider factors such as unity, stability, and security at the entire core layer. [0003] Middleware is an independent system software or service program, with which distributed application software can share resources between different technologies. Middleware sits on top of the client / server op...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54H04L29/08
CPCG06F9/546H04L67/02
Inventor 崔明波
Owner INSPUR COMMON SOFTWARE
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