A front-end code automatic generation method and system based on an interface specification document

An interface specification and automatic generation technology, applied in the field of data processing, can solve problems such as cumbersome manual operation processes, achieve the effect of reducing repetitive work and improving development efficiency

Inactive Publication Date: 2018-12-25
CHINA CONSTRUCTION BANK
View PDF8 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] It can be seen from this that when developing front-end pages, a large amount of front-end code needs to be written according to the interface specification document. The request message field defined in the interface speci

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
  • A front-end code automatic generation method and system based on an interface specification document
  • A front-end code automatic generation method and system based on an interface specification document
  • A front-end code automatic generation method and system based on an interface specification document

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0053] like figure 1 As shown, it is a flow chart of Embodiment 1 of a front-end code automatic generation method based on an interface specification document disclosed in this application. This method may include the following steps:

[0054] S101. Define an interface specification document;

[0055]When it is necessary to automatically generate the front-end code, first define the interface specification document. The front-end and the back-end use XML to transmit messages. The ...

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 method and a system for automatically generating front-end codes based on an interface specification document, The method comprises the following steps of: defining an interface specification document, analyzing the interface specification document, generating an interface data model that can be recognized by a computer program, and automatically generating a basic code and a request message required for front-end development based on the interface data model and the corresponding parsing rules. By defining interface specifications, Analysis Interface Specifications and Codes, the content of interface specification document is parsed to generate an interface data model, and then according to the interface data model and the corresponding parsing rules, the basic code and request message used in front-end development are generated automatically, which greatly reduces the repetitive work of developers and improves the development efficiency.

Description

technical field [0001] The present application relates to the technical field of data processing, in particular to a method and system for automatically generating front-end codes based on interface specification documents. Background technique [0002] During project development, front-end and back-end collaborative development is often required. After inputting data on the front-end interface, it is necessary to call the back-end service, encapsulate the input data into a request message, and then display it on the interface according to the return message from the back-end. Front-end developers and back-end developers need to agree on an interface specification to define the format of the service message, which fields the front-end needs to pass in, and which fields the back-end should return. Front-end developers use the interface specification document to determine which front-end interface elements need controls and what data each control enters. [0003] It can be se...

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/38
CPCG06F8/35G06F8/38
Inventor 张圳陈先华张远志周波李崔堂
Owner CHINA CONSTRUCTION BANK
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