API verification and API document generation method and system based on API gateway
A document generation and gateway technology, applied in the direction of program files, program code conversion, software deployment, etc., to achieve the effects of ensuring standardization, reducing workload, good practice and consistency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] as attached figure 1 As shown, the API gateway-based API verification and API document generation method of the present invention, the method is to perform API normative verification on the access gateway API based on the open API standard when the upstream service is connected to the gateway; and provide a docking The representation state transfer application programming interface (Restful API) of the ingress gateway automatically generates API resource documents based on the swagger specification; for each upstream service of the access gateway, the input API is automatically analyzed through the verification tool of the Restful API, and then Use relevant methods to find whether it meets the standards; after checking, the relevant information will be entered into the user API; the method is as follows:
[0043] S101. Enter the external interface that needs to be exposed through the API gateway into the gateway, and realize the forwarding of traffic from the externally e...
Embodiment 2
[0052] The API verification and API document generation system based on the API gateway of the present invention, the system includes,
[0053] The entry module is used for the user to operate the API gateway to enter the API, and for each entered API, identify its host, path, parameters, request model and response model;
[0054] The verification module is used to define the validity of the characters in the API according to the resource type definition metafile, verify the legitimacy of the API through the verification tool of RestfulAPI, and generate a verified response to feedback to the user;
[0055] The operation module is used to apply the hypertext markup language operation corresponding to the metadata to the legal API, the swagger template processor in the verification tool based on the available Restful API;
[0056] The conversion module is used to convert the entered API into a mode that conforms to the Swagger specification, traverse each available identifier, a...
Embodiment 3
[0061] The embodiment of the present invention also provides an electronic device, including: a memory and a processor;
[0062] Wherein, the memory stores computer-executable instructions;
[0063] The processor executes the computer-executed instructions stored in the memory, so that the processor executes the API gateway-based API verification and API document generation method in any embodiment of the present invention.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com