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

Interface document generation method and device, electronic equipment and storage medium

A document generation and interface technology, applied in the computer field, can solve problems such as affecting work efficiency, inaccurate and complicated API interface documents, etc., to achieve the effect of improving accuracy, standardization and universality

Pending Publication Date: 2020-02-18
TAIKANG LIFE INSURANCE CO LTD
View PDF5 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the existing technology, the maintenance method of the API interface is carried out through Excel. Due to the complexity of the actual business and the change of the requirements in the development process, the API definition will be changed, and the work saturation of the developers is very high. Progress, modify the API directly in the program, and maintain the changes of the API in the document in real time, which is a very complicated and time-consuming task
Therefore, as the system development progresses, the final program implementation often differs greatly from the initially defined API, which causes great difficulties for other personnel in the later system maintenance stage or when work is handed over. When the system communicates, the API interface documentation provided is usually not accurate, which seriously affects the work efficiency of both parties

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
  • Interface document generation method and device, electronic equipment and storage medium
  • Interface document generation method and device, electronic equipment and storage medium
  • Interface document generation method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0090] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0091] One of the core concepts of the embodiments of the present invention is to provide a method for generating interface documents for program codes that define parameters based on Swagger code annotations, generate requests by receiving interface documents, and determine target program codes based on the requests and obtain A predefined interface document template associated with the target program code, wherein, the predefined...

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 provides an interface document generation method and a device, electronic equipment and a storage medium. The method is applied to a program code for parameter definition based on a codeannotation of a Swagger. The method comprises the steps: receiving an interface document generation request; determining a target program code according to the interface document generation request,and obtaining a predefined interface document template associated with the target program code; analyzing a code annotation corresponding to the target program code, and obtaining attribute information of the target program code from the code annotation; importing the attribute information into the predefined interface document template to generate an interface document corresponding to the interface document generation request; displaying the interface document. The embodiment of the invention is applied to a program code for parameter definition based on a code annotation of a Swagger, and standardization and universality of the code annotation can be realized; the interface document is automatically generated according to the target program code, and the accuracy of the interface document is improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for generating an interface document, electronic equipment, and a storage medium. Background technique [0002] In today's Internet era, the information system supports the operation of online services. The interaction between the front-end service and the back-end service in the information system and the interaction between the information systems are all communicated through API (Application Programming Interface, Application Programming Interface). Currently the most popular web data interface design specification is RESTful (Representational State Transfer, representational state transfer), and in the current microservice model, there are more and more domains divided according to business, and each domain is physically independent of each other. There are more and more APIs for communication between RESTful APIs, so the RESTful API is the skeleton of t...

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): G06F8/30G06F8/40
CPCG06F8/30G06F8/40
Inventor 王超
Owner TAIKANG LIFE INSURANCE 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