Method and device for interface document generation, computer device, and storage medium

A document generation and interface technology, which is applied in the computer field, can solve the problems of low efficiency, time-consuming and labor-intensive interface documents, and the inability to realize automatic collection, etc., and achieve the effect of improving generation efficiency

Pending Publication Date: 2018-12-04
WEIKUN (SHANGHAI) TECH SERVICE CO LTD
View PDF4 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The method of generating interface documents with the help of tools still requires users to manually obtain interface information. For a developed system, developers need to collect the interface information of all interfaces in the system and manually fill in the tool, which is still time-consuming and laborious.
[0005] These traditional methods have the problems of being unable to automatically collect interface information and generating interface documents with low efficiency

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
  • Method and device for interface document generation, computer device, and storage medium
  • Method and device for interface document generation, computer device, and storage medium
  • Method and device for interface document generation, computer device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described in further detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0047] The interface document generation method provided by this application can be applied to such as figure 1 shown in the application environment. Wherein, the terminal 102 communicates with the server 104 through the network. The terminal 102 is used to provide a user operation interface, and sends an interface document generation request to the server 104. The server 104 pulls the source code file of the system for analysis, collects source code annotation information, obtains all interfaces and global parameters contained in the source code file by traversing clas...

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 relates to a method and a device for interface document generation, a computer device, and a storage medium. The method comprises: obtaining a code file, traversing classes of a plurality of interfaces recorded in the code file, and obtaining code annotation information corresponding to the currently traversed classes; finding a global parameter in the currently traversed class, andobtaining global parameter information from definition of the global parameter in the class and the code annotation information corresponding to the class; by traversing class methods in the classes,reflecting all interfaces contained in the classes, obtaining interface information of each interface from a method body corresponding to the traversed class method and the code annotation informationcorresponding to the class; adding the global parameter information to the interface information of all interfaces and writing the obtained interface information to an interface document. The methodcan automatically collect interface information and effectively improve generation efficiency of the interface documents.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method, device, computer equipment and storage medium for generating an interface document. Background technique [0002] In the process of system development and system upgrade development, developers need to pre-agree on interface specifications and reflect the interface specifications in the form of interface documents. The traditional ways of generating interface documents include the following: [0003] Manual writing: Developers manually write interface documents during the development process. Obviously, this method of manually writing and modifying interface documents is time-consuming and poorly standardized. [0004] With the help of tools: The generation of interface documents with the help of tools usually provides standardized formats for the tools. Users input interface information into the tools, and the tools generate standardized documents based o...

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): G06F8/30
CPCG06F8/315
Inventor 马奇徐文灏陈琪蔡健
Owner WEIKUN (SHANGHAI) TECH SERVICE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products