CN110955416A - Interface document generation method, device, equipment and computer storage medium - Google Patents

Interface document generation method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN110955416A
CN110955416A CN201910971900.3A CN201910971900A CN110955416A CN 110955416 A CN110955416 A CN 110955416A CN 201910971900 A CN201910971900 A CN 201910971900A CN 110955416 A CN110955416 A CN 110955416A
Authority
CN
China
Prior art keywords
interface
code
preset
information
document
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910971900.3A
Other languages
Chinese (zh)
Inventor
周俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910971900.3A priority Critical patent/CN110955416A/en
Publication of CN110955416A publication Critical patent/CN110955416A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention relates to the technical field of computers, and discloses an interface document generation method, which comprises the following steps: when an interface document generation request is received, acquiring a file identifier in the interface document generation request and a code file corresponding to the file identifier; according to the language type of the code file, carrying out format conversion on the code information in the code file; comparing the code information after format conversion with each piece of preset annotation information in a preset annotation set to obtain an interface code of an annotation corresponding to the preset annotation information; and taking preset annotation information corresponding to the interface code as target annotation information, and inputting the interface code and the target annotation information into a preset document template to generate a standard interface document. The invention also discloses an interface document generation device, equipment and a computer storage medium. The invention improves the compiling efficiency of the interface document and shortens the software development period.

Description

Interface document generation method, device, equipment and computer storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer storage medium for generating an interface document.
Background
With the continuous development of computer technology, the complexity of a software system is higher and higher, the code amount is larger and larger, and one piece of software needs to be developed by cooperation of a plurality of developers.
Due to the large differences in programming styles between different developers, code written by one developer is often difficult to understand by another developer. Therefore, in order to facilitate different developers to know the code content, the developers need to spend a lot of time and effort to write an interface document corresponding to the code, in addition to writing the code, the interface document is used to describe the content of the interface program, such as the format of input parameters, the format of output parameters, interface address information and interface description information, etc.; the existing interface documents are manually written by developers, the developers need to make forms and construct complex examples according to interface protocols to ensure the accuracy of the interface documents, so that the writing of the interface documents is time-consuming, and the whole software development period is prolonged.
Disclosure of Invention
The invention mainly aims to provide an interface document generation method, an interface document generation device, interface document generation equipment and a computer storage medium, and aims to solve the technical problems that the current interface document needs to be manually written by developers, the interface document writing efficiency is low, and the software development period is long.
In order to achieve the above object, the present invention provides an interface document generating method, including the steps of:
when an interface document generation request is received, acquiring a file identifier in the interface document generation request and a code file corresponding to the file identifier;
according to the language type of the code file, carrying out format conversion on the code information in the code file;
comparing the code information after format conversion with each piece of preset annotation information in a preset annotation set to obtain an interface code of an annotation corresponding to the preset annotation information;
and taking preset annotation information corresponding to the interface code as target annotation information, and inputting the interface code and the target annotation information into a preset document template to generate a standard interface document.
Optionally, before the step of comparing the code information after format conversion with each piece of preset annotation information in a preset annotation set to obtain an interface code annotated by the preset annotation information, the method includes:
inquiring a preset interface document set, and acquiring interface annotation information in each preset interface document in the preset interface document set, wherein the interface annotation information comprises: interface identification information, interface calling information, interface address information, interface function information, interface access parameter information and interface return value information;
and converting the interface annotation information into interface annotation information in a preset format, taking the interface annotation information in the preset format as preset annotation information, and storing the preset annotation information in a preset annotation set.
Optionally, before the step of comparing the code information after format conversion with each piece of preset annotation information in a preset annotation set to obtain an interface code annotated by the preset annotation information, the method includes:
acquiring each piece of preset annotation information in a preset annotation set and a characteristic character string of each piece of preset annotation information, and constructing a regular expression according to the characteristic character string;
the step of comparing the code information after format conversion with each piece of preset annotation information in a preset annotation set to obtain an interface code annotated by the preset annotation information correspondingly comprises:
and retrieving the code information according to the regular expression to obtain a code corresponding to the characteristic character string, and taking the code as an annotation interface code corresponding to preset annotation information.
Optionally, the step of converting the format of the code information in the code file according to the language type of the code file includes:
determining the language type of the code file, inquiring a preset compiling rule base, and acquiring a standard method compiling rule corresponding to the language type in the preset compiling rule base;
and taking the code which does not accord with the writing rule of the standard method in the code information as a redundant code, and deleting the redundant code to finish format conversion of the code information.
Optionally, after the step of taking the preset annotation information corresponding to the interface code as target annotation information and inputting the interface code and the target annotation information into a preset document template to generate a standard interface document, the method includes:
acquiring a document identifier of the standard interface document, establishing an association relation between the standard interface document and the document identifier, and adding the document identifier to a preset directory;
when an interface document query request is received, querying the preset directory, acquiring a target document identifier corresponding to the interface document query request, acquiring a target interface document corresponding to the interface document query request according to the incidence relation of the target document identifier, and outputting the target interface document.
Optionally, after the step of taking the preset annotation information corresponding to the interface code as target annotation information and inputting the interface code and the target annotation information into a preset document template to generate a standard interface document, the method includes:
when the code file is detected to be updated, comparing the code files before and after updating to obtain an updating code in the updated code file;
and when the updating code is the interface code, updating the standard interface document.
Optionally, after the step of taking the preset annotation information corresponding to the interface code as target annotation information and inputting the interface code and the target annotation information into a preset document template to generate a standard interface document, the method includes:
when a test case generation request is received, acquiring a file identifier in the test case generation request and a code file corresponding to the file identifier, and judging whether a standard interface document associated with the code file exists or not;
if a standard interface document associated with the code file exists, acquiring interface identification information, interface access parameter information and interface return value information in the standard interface document;
inputting the interface identification information, the interface entry parameter information and the interface return value information into a preset test case generation model to generate a test case;
when the test case is detected to be generated completely, inputting verification parameters corresponding to the test case into the test case, and executing the test case containing the verification parameters to verify the test case;
and when the test case passes the verification, outputting the test case to test the code file by using the test case.
In addition, to achieve the above object, the present invention provides an interface document generating apparatus, including:
the device comprises a request receiving module, a file generation module and a code file generation module, wherein the request receiving module is used for acquiring a file identifier in an interface document generation request and a code file corresponding to the file identifier when the interface document generation request is received;
the code conversion module is used for converting the format of the code information in the code file according to the language type of the code file;
the code comparison module is used for comparing the code information after format conversion with each piece of preset annotation information in a preset annotation set to obtain an interface code of an annotation corresponding to the preset annotation information;
and the document generation module is used for taking preset annotation information corresponding to the interface code as target annotation information, and inputting the interface code and the target annotation information into a preset document template to generate a standard interface document.
In addition, in order to achieve the above object, the present invention also provides an interface document generating device;
the interface document generation device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein:
the computer program, when executed by the processor, implements the steps of the interface document generation method as described above.
In addition, to achieve the above object, the present invention also provides a computer storage medium;
the computer storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the interface document generation method as described above.
In the embodiment of the invention, format conversion is performed on code information in a code file, and the code information after the format conversion is compared with each preset annotation information in a preset annotation set to obtain interface codes related to the interface information in the code file.
Drawings
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of an interface document generating method according to the present invention;
FIG. 3 is a functional block diagram of an apparatus for generating an interface document according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a terminal (also called an interface document generating device, where the interface document generating device may be formed by a separate interface document generating apparatus, or may be formed by combining other apparatuses with an interface document generating apparatus) in a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a fixed terminal or a mobile terminal, such as an intelligent air conditioner with a networking function, an intelligent electric lamp, an intelligent power supply, an intelligent sound box, an automatic driving automobile, a Personal Computer (PC), a smart phone, a tablet computer, an electronic book reader, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, e.g., a Central Processing Unit (CPU), a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., WIFI interface, WIreless FIdelity, WIFI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, and a WiFi module; the input unit is compared with a display screen and a touch screen; the network interface may optionally be other than WiFi, bluetooth, probe, etc. in the wireless interface. Such as light sensors, motion sensors, and other sensors. In particular, the light sensor may include an ambient light sensor and a proximity sensor; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the computer software product is stored in a storage medium (storage medium: also called computer storage medium, computer medium, readable storage medium, computer readable storage medium, or direct storage medium, etc., and the storage medium may be a non-volatile readable storage medium, such as RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method according to the embodiments of the present invention, and a memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a computer program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the computer program stored in the memory 1005 and perform the steps of the interface document generation method provided by the following embodiment of the present invention. The computer storage medium in this embodiment stores thereon a computer program that, when executed by a processor, implements the operations in the interface document generation method provided in the following embodiments.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of an interface document generating method according to the present invention, in this embodiment, the interface document generating method includes:
step S10, when receiving an interface document generation request, acquiring a file identifier in the interface document generation request and a code file corresponding to the file identifier.
In this embodiment, the interface document generation method is applied to an interface document generation device, the interface document generation device receives an interface document generation request, and a triggering manner of the interface document generation request is not specifically limited, that is, the interface document generation request may be actively triggered by a user, for example, when the user completes writing a code file, the user clicks an interface document editing button to actively trigger the interface document generation request; the interface document generation request may be automatically triggered by an interface document generation device, for example, the interface document generation device automatically triggers the interface document generation request when the code file writing is detected to be completed.
When the interface document generation device receives an interface document generation request, the interface document generation device obtains a file identifier (the file identifier refers to code file identification information set in advance, for example, a file name of a code file) in the interface document generation request, and the interface document generation device obtains the code file corresponding to the file identifier.
And step S20, converting the format of the code information in the code file according to the language type of the code file.
The interface document generation device performs format adjustment on the code information in the code file, and specifically, the interface document generation device adjusts the code information according to a code writing rule of the code file (the code writing rule refers to writing formats of different code languages, or a code nesting rule, etc.), and the interface document generation device adjusts the code information according to the code writing rule, for example, the interface document generation device adjusts the code information across lines in the code file into the same line by adding separators, or the interface document generation device deletes redundant information in the code information to perform format conversion on the code information in the code file.
Specifically, step S20 includes:
determining the language type of the code file, inquiring a preset compiling rule base, and acquiring a standard method compiling rule corresponding to the language type in the preset compiling rule base;
and taking the code which does not accord with the writing rule of the standard method in the code information as a redundant code, and deleting the redundant code to finish format conversion of the code information.
That is, the interface document generating device determines the language type of the code file (the language type is c language, java language, etc.), and a writing rule base is preset in the interface document generating device, where the preset writing rule base includes writing rules of different language types, for example, an instance object of a return class, and the writing rule:
class aa{
public static aa getaa(){
return new aa();
}
public static void main(String[]args){
System.out.println(getaa());
}
the interface document generation equipment queries a preset compiling rule base to obtain the code compiling rule corresponding to the language type; the interface document generation device takes the code information which does not conform to the code writing rule as a redundant code, and deletes the redundant code to complete format conversion of the code information.
In this embodiment, the interface document generation device performs format conversion on the code information in the code file according to a code writing rule of the code file to obtain a standardized code file, so as to determine an interface code related to an interface in the standardized code file, specifically:
step S30, comparing the code information after format conversion with each piece of preset annotation information in a preset annotation set, and obtaining an interface code of an annotation corresponding to the preset annotation information.
In this embodiment, a preset annotation set is included in the interface document generation device, where the preset annotation set includes different preset annotation information, where the preset annotation information refers to writing an interface annotation in advance according to a specification, for example, the preset annotation information is a standardized JavaScript annotation, and the number of the preset annotation information is not specifically limited, and the step of generating the preset annotation information by the interface document generation device includes:
a1, inquiring a preset interface document set, and acquiring interface annotation information in each preset interface document in the preset interface document set, wherein the interface annotation information includes: interface identification information, interface calling information, interface address information, interface function information, interface access parameter information and interface return value information;
step a2, converting the interface annotation information into interface annotation information in a preset format, taking the interface annotation information in the preset format as preset annotation information, and storing the preset annotation information in a preset annotation set;
that is, the interface document generating device queries a preset interface document (the preset interface document refers to a pre-stored normalized interface document manually edited by a user), and the interface document generating device acquires interface calling information, interface address information, interface function information, interface access parameter information and interface return value information in the preset interface document; the interface document generation device takes interface calling information, interface address information, interface function information, interface entry information and interface return value information in a preset interface document as interface annotation information.
The interface document generation device converts the interface annotation information into a preset format (the preset format is a standardized format of the preset interface annotation information), for example, the interface document generation device arranges each type of information in the interface annotation information according to a standardized sequence to convert the interface annotation information into the preset format.
The interface document generation equipment takes interface annotation information in a preset format as preset annotation information and stores the preset annotation information into a preset annotation set; for example, the preset annotation information is: @ eyDesc, @ eyMethod, @ eyAuthor, @ eyDate, @ eyParam and @ eyReturn.
In this embodiment, the interface document generation device presets annotation information, and compares the code information in the code file with each piece of preset annotation information in a preset annotation set to obtain an interface code matched with the preset annotation information, specifically:
the interface document generating device compares the code information after format conversion with each preset annotation information in a preset annotation set to obtain an interface code matched with the preset annotation information, for example, the preset annotation set comprises 100 pieces of preset annotation information, the converted code information comprises 50 pieces, the interface document generating device compares the 50 pieces of code information after format conversion with 100 pieces of preset annotation information in the preset annotation set to obtain 10 pieces of code information matched with the preset annotation information, the interface document generating device takes the 10 pieces of code information as interface codes to generate an interface document corresponding to the interface codes, that is,
and step S40, taking the preset annotation information corresponding to the interface code as target annotation information, and inputting the interface code and the target annotation information into a preset document template to generate a standard interface document.
After the interface document generation equipment obtains the interface code, the interface document generation equipment obtains target annotation information corresponding to the interface code, and the interface document generation equipment inputs the interface code and the target annotation information into a preset document template (the preset document template refers to a preset blank template which does not contain the interface annotation information) to generate a standard interface document.
It can be understood that, in this embodiment, the interface document generating device may set different preset document templates according to the file type of the code file to generate standard interface documents in different formats, specifically, the method includes:
b1, acquiring the file type of the code file, inquiring a preset mapping table, and determining a preset document template corresponding to the file type;
step b2, acquiring the target annotation information corresponding to the interface code, and inputting the interface code and the target annotation information into the preset document template to generate a standard interface document.
The interface document generation equipment acquires a file type of a code file, inquires a preset mapping table (the preset mapping table refers to a preset file type and template mapping table, for example, if the file type in the preset mapping table is a first type, the preset mapping table corresponds to a first type preset document template, and if the file type is a second type, the preset mapping table corresponds to a second type preset document template), the interface document generation equipment determines the preset document template corresponding to the file type, then the interface document generation equipment acquires target annotation information corresponding to the interface code, and the interface document generation equipment inputs the interface code and the target annotation information into the preset document template to generate a standard interface document. In the embodiment, the types of the preset interface templates are more, and the interface document generation device selects the preset interface templates according to the file types, so that the generated standard interface documents can better meet different scene requirements.
In the embodiment, format conversion is performed on the code information in the code file, the code information after the format conversion is compared with each piece of preset annotation information in the preset annotation set, so that the interface code related to the interface information in the code file is obtained, and the interface document generation equipment generates the interface document according to the interface code and the target annotation information corresponding to the interface code, so that the automatic generation of the interface document is realized, developers do not need to edit the interface document manually, the editing time of the interface document is reduced, the generation efficiency of the interface document is improved, and the development period of software is further shortened.
Further, on the basis of the first embodiment of the present invention, a second embodiment of the interface document generating method of the present invention is proposed.
This embodiment is after the step S40 of the first embodiment, and the difference between this embodiment and the first embodiment of the present invention is:
acquiring a document identifier of the standard interface document, establishing an association relation between the standard interface document and the document identifier, and adding the document identifier to a preset directory;
when an interface document query request is received, querying the preset directory, acquiring a target document identifier corresponding to the interface document query request, acquiring a target interface document corresponding to the interface document query request according to the incidence relation of the target document identifier, and outputting the target interface document.
The interface document generation device acquires a document identifier of a standard interface document, establishes an association relationship between the standard interface document and the document identifier, and adds the document identifier to a preset directory (the preset directory refers to a directory preset for retrieving the interface document) for a user to query.
The interface document generation equipment receives an interface document query request, wherein the triggering mode of the interface document query request is not specifically limited, the interface document generation equipment queries a preset directory when receiving the interface document query request, acquires a target document identifier corresponding to the interface document query request, acquires a target interface document corresponding to the target document identifier according to the incidence relation of the target document identifier, and outputs the target interface document.
In this embodiment, after the interface document generation device generates the standard interface document, the document identifier of the standard interface document is added to the preset directory, so as to facilitate quick query of the interface document.
Further, on the basis of the above-mentioned embodiment of the present invention, a third embodiment of the interface document generating method of the present invention is proposed, and the present embodiment is different from the above-mentioned embodiment in that:
step S50, acquiring each piece of preset annotation information in a preset annotation set and a characteristic character string of each piece of preset annotation information, and constructing a regular expression according to the characteristic character string.
In this embodiment, the interface document generation device obtains each piece of preset annotation information in the preset annotation set and a feature character string of each piece of preset annotation information, and the interface document generation device constructs a regular expression according to the feature character string, where the regular expression is a text pattern composed of common characters (e.g., characters a to z) and special characters (referred to as "meta characters"), specifically: the method for constructing the regular expression is the same as the method for creating the mathematical expression, and the regular expression can be a single character, a character set, a character range, a selection among characters or any combination of all the components; the regular expression is used as a template to match a certain character pattern with the searched character string.
For example, the interface document generation device may obtain each piece of preset annotation information in the preset annotation set and a feature character string of each piece of preset annotation information, and the interface document generation device constructs a regular expression according to the feature character string, where the following table 1 shows a whole expression set, specifically:
Figure BDA0002231202800000111
presetting a characteristic character string of the annotation information as a user name, and constructing a regular expression of/[ a-z 0-9- ] {3,16 }; the feature character string of the preset annotation information is a regular expression of// [ a-z 0-9- ] {6,18 }/, which is constructed by the password.
And step S41, retrieving the code information according to the regular expression to obtain a code corresponding to the characteristic character string, and taking the code as an annotation interface code corresponding to preset annotation information.
The interface document generation equipment searches the code information after format conversion according to the regular expression, namely, the interface document generation equipment obtains a code corresponding to the characteristic character string according to the regular expression and takes the code as an annotation interface code corresponding to the preset annotation information; in the embodiment, the code information in the code file is processed to obtain the interface code by constructing the regular expression, so that the accuracy of code information analysis is improved, and the condition of analysis omission is effectively avoided.
Further, on the basis of the above-described embodiment of the present invention, a fourth embodiment of the interface document generating method of the present invention is proposed.
This embodiment can be combined with any of the above embodiments, and is different from the above embodiments in that:
when the code file is detected to be updated, comparing the code files before and after updating to obtain an updating code in the updated code file;
and when the updating code is the interface code, updating the standard interface document.
In this embodiment, after the code file is generated, the code information in the code file is not constant, and a software developer may update and optimize the code, for example, the software developer adjusts a part of parameters in the code, and at this time, it is troublesome to directly regenerate the interface document according to the updated code file.
The interface document generation device judges whether the update code is an interface code, and the interface document generation device judges whether the update code is an interface code can be realized in different ways, specifically:
the implementation mode is as follows: the interface document generation equipment compares the update code with each piece of preset annotation information in a preset annotation set and judges whether the update code is an interface code matched with the preset annotation information;
the implementation mode two is as follows: the interface document generation equipment judges whether the updating operation is triggered based on the interface codes, and if the updating operation is triggered based on the interface codes, the updating codes are the interface codes; if the updating operation is not triggered based on the interface code, the updating code is not the interface code.
It can be understood that, the first mode is adopted by the interface document generation device, which can ensure the accuracy of judgment and prevent omission, but the speed of comparing the update codes separately is low, and the second mode is adopted by the interface document generation device, which determines that the speed of the interface codes is high, but omission may occur, for example, a user does not update based on the interface codes, but re-edits the codes in a code file, and if the re-edited codes are the interface codes, the interface document generation device cannot effectively identify the codes; therefore, when the interface document generation device in this embodiment determines whether the update code is the interface code, the first mode or the second mode may be selected according to the update mode of the code file.
When the update code is not the interface code, the interface document generation device does not need to modify the standard interface document; when the interface document generation equipment determines that the update code is the interface code, the interface document generation equipment updates the interface document according to the updated interface code, namely, the interface document generation equipment takes the target annotation information corresponding to the interface code and inputs the interface code and the target annotation information into the existing standard interface document so as to update the standard interface document.
In this embodiment, when detecting that the code file is updated, the interface document generation device may update the standard interface document corresponding to the code file, without manually updating the interface document by a user, so as to implement automatic update of the standard interface document.
Further, on the basis of the above-described embodiment of the present invention, a fifth embodiment of the interface document generating method of the present invention is proposed.
This embodiment is a step after step S40 in the first embodiment, and this embodiment may be combined with any other embodiment, and the difference between this embodiment and the above embodiments is:
when a test case generation request is received, acquiring a file identifier in the test case generation request and a code file corresponding to the file identifier, and judging whether a standard interface document associated with the code file exists or not;
if a standard interface document associated with the code file exists, acquiring interface identification information, interface access parameter information and interface return value information in the standard interface document;
inputting the interface identification information, the interface entry parameter information and the interface return value information into a preset test case generation model to generate a test case;
when the test case is detected to be generated completely, inputting verification parameters corresponding to the test case into the test case, and executing the test case containing the verification parameters to verify the test case;
and when the test case passes the verification, outputting the test case to test the code file by using the test case.
In this embodiment, the interface document generation device receives a test case generation request, a trigger mode of the test case generation request is not specifically limited, and when the interface document generation device receives the test case generation request, the interface document generation device acquires a code file corresponding to the test case generation request and a standard interface document corresponding to the code file; the interface document generation equipment acquires interface identification information, interface access parameter information and interface return value information in the standard interface document.
The interface document generation equipment inputs interface identification information, interface input parameter information, interface return value information and parameter processing rules into the preset test case generation model to generate a test case; when detecting that the test case is generated, the interface document generation equipment inputs verification parameters corresponding to the test case into the test case, executes the test case containing the verification parameters and verifies the test case; and if the result of the test case execution output is the same as the preset standard result, the test case verification is passed, otherwise, if the result of the test case execution output is different from the preset standard result, the test case verification is not passed.
When the test case passes the verification, outputting the test case to test the code file by using the test case; when the test case fails to be verified, outputting prompt information to generate a new test case; in the embodiment, the test case can be generated according to the generated standard interface document without development or manual compiling of the test case by a tester, and then the generated test case is utilized to effectively test the code file, so that the unified management of the code file, the interface document and the test case is realized, and the development efficiency of the project is effectively improved.
In addition, referring to fig. 3, an embodiment of the present invention further provides an interface document generating apparatus, where the interface document generating apparatus includes:
a request receiving module 10, configured to, when an interface document generation request is received, obtain a file identifier in the interface document generation request and a code file corresponding to the file identifier;
the code conversion module 20 is configured to perform format conversion on the code information in the code file according to the language type of the code file;
the code comparison module 30 is configured to compare the code information after format conversion with each piece of preset annotation information in a preset annotation set, so as to obtain an interface code of an annotation corresponding to the preset annotation information;
and the document generating module 40 is configured to use preset annotation information corresponding to the interface code as target annotation information, and input the interface code and the target annotation information into a preset document template to generate a standard interface document.
In one embodiment, the interface document generating apparatus includes:
the query obtaining module is configured to query a preset interface document set, and obtain interface annotation information in each preset interface document in the preset interface document set, where the interface annotation information includes: interface identification information, interface calling information, interface address information, interface function information, interface access parameter information and interface return value information;
and the conversion and storage module is used for converting the interface annotation information into interface annotation information in a preset format, using the interface annotation information in the preset format as preset annotation information, and storing the preset annotation information in a preset annotation set.
In one embodiment, the interface document generating apparatus includes:
the rule setting module is used for acquiring each piece of preset annotation information in a preset annotation set and a characteristic character string of each piece of preset annotation information, and constructing a regular expression according to the characteristic character string;
the code comparison module 30 is further configured to:
and retrieving the code information according to the regular expression to obtain a code corresponding to the characteristic character string, and taking the code as an annotation interface code corresponding to preset annotation information.
In one embodiment, the code conversion module 20 includes:
the type determination is used for determining the language type of the code file, inquiring a preset compiling rule base and acquiring a standard method compiling rule corresponding to the language type in the preset compiling rule base;
and the deleting and converting unit is used for taking the codes which do not accord with the standard method writing rule in the code information as redundant codes and deleting the redundant codes to finish format conversion of the code information.
In one embodiment, the interface document generating apparatus includes:
the storage adding module is used for acquiring a document identifier of the standard interface document, establishing an association relation between the standard interface document and the document identifier, and adding the document identifier to a preset directory;
and the receiving and inquiring module is used for inquiring the preset directory when receiving an interface document inquiring request, acquiring a target document identifier corresponding to the interface document inquiring request, acquiring a target interface document corresponding to the interface document inquiring request according to the incidence relation of the target document identifier and outputting the target interface document.
In one embodiment, the interface document generating apparatus includes:
the detection acquisition module is used for comparing the code files before and after updating when detecting that the code files are updated, and acquiring the updating codes in the updated code files;
and the document updating module is used for updating the standard interface document when the updating code is the interface code.
In one embodiment, the interface document generating apparatus includes:
the file acquisition module is used for acquiring a file identifier in the test case generation request and a code file corresponding to the file identifier when the test case generation request is received, and judging whether a standard interface document associated with the code file exists or not;
the rule determining module is used for acquiring interface identification information, interface access parameter information and interface return value information in the standard interface document if the standard interface document associated with the code file exists;
the case generation module is used for inputting the interface identification information, the interface entry parameter information and the interface return value information into a preset test case generation model to generate a test case;
the case verification module is used for inputting verification parameters corresponding to the test case into the test case and executing the test case containing the verification parameters to verify the test case when the test case is detected to be generated;
and the code testing module is used for outputting the test case when the test case passes the verification so as to test the code file by using the test case.
The steps implemented by the functional modules of the interface document generation apparatus may refer to the embodiments of the interface document generation method of the present invention, and are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity/action/object from another entity/action/object without necessarily requiring or implying any actual such relationship or order between such entities/actions/objects; the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
For the apparatus embodiment, since it is substantially similar to the method embodiment, it is described relatively simply, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, in that elements described as separate components may or may not be physically separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An interface document generation method, characterized by comprising the steps of:
when an interface document generation request is received, acquiring a file identifier in the interface document generation request and a code file corresponding to the file identifier;
according to the language type of the code file, carrying out format conversion on the code information in the code file;
comparing the code information after format conversion with each piece of preset annotation information in a preset annotation set to obtain an interface code of an annotation corresponding to the preset annotation information;
and taking preset annotation information corresponding to the interface code as target annotation information, and inputting the interface code and the target annotation information into a preset document template to generate a standard interface document.
2. The interface document generation method according to claim 1, wherein before the step of comparing the code information after format conversion with each piece of preset comment information in a preset comment set to obtain an interface code of a comment corresponding to the piece of preset comment information, the method includes:
inquiring a preset interface document set, and acquiring interface annotation information in each preset interface document in the preset interface document set, wherein the interface annotation information comprises: interface identification information, interface calling information, interface address information, interface function information, interface access parameter information and interface return value information;
and converting the interface annotation information into interface annotation information in a preset format, taking the interface annotation information in the preset format as preset annotation information, and storing the preset annotation information in a preset annotation set.
3. The interface document generation method according to claim 1, wherein before the step of comparing the code information after format conversion with each piece of preset comment information in a preset comment set to obtain an interface code of a comment corresponding to the piece of preset comment information, the method includes:
acquiring each piece of preset annotation information in a preset annotation set and a characteristic character string of each piece of preset annotation information, and constructing a regular expression according to the characteristic character string;
the step of comparing the code information after format conversion with each piece of preset annotation information in a preset annotation set to obtain an interface code annotated by the preset annotation information correspondingly comprises:
and retrieving the code information according to the regular expression to obtain a code corresponding to the characteristic character string, and taking the code as an annotation interface code corresponding to preset annotation information.
4. The interface document generating method according to claim 1, wherein the step of converting the format of the code information in the code file according to the language type of the code file comprises:
determining the language type of the code file, inquiring a preset compiling rule base, and acquiring a standard method compiling rule corresponding to the language type in the preset compiling rule base;
and taking the code which does not accord with the writing rule of the standard method in the code information as a redundant code, and deleting the redundant code to finish format conversion of the code information.
5. The interface document generation method according to claim 1, wherein the step of generating the standard interface document by inputting the interface code and the target comment information into a preset document template with the preset comment information corresponding to the interface code as the target comment information includes:
acquiring a document identifier of the standard interface document, establishing an association relation between the standard interface document and the document identifier, and adding the document identifier to a preset directory;
when an interface document query request is received, querying the preset directory, acquiring a target document identifier corresponding to the interface document query request, acquiring a target interface document corresponding to the interface document query request according to the incidence relation of the target document identifier, and outputting the target interface document.
6. The interface document generation method according to claim 1, wherein the step of generating the standard interface document by inputting the interface code and the target comment information into a preset document template with the preset comment information corresponding to the interface code as the target comment information includes:
when the code file is detected to be updated, comparing the code files before and after updating to obtain an updating code in the updated code file;
and when the updating code is the interface code, updating the standard interface document.
7. The interface document generation method according to any one of claims 1 to 6, wherein the step of generating the standard interface document by using the preset annotation information corresponding to the interface code as the target annotation information and inputting the interface code and the target annotation information into a preset document template, comprises:
when a test case generation request is received, acquiring a file identifier in the test case generation request and a code file corresponding to the file identifier, and judging whether a standard interface document associated with the code file exists or not;
if a standard interface document associated with the code file exists, acquiring interface identification information, interface access parameter information and interface return value information in the standard interface document;
inputting the interface identification information, the interface entry parameter information and the interface return value information into a preset test case generation model to generate a test case;
when the test case is detected to be generated completely, inputting verification parameters corresponding to the test case into the test case, and executing the test case containing the verification parameters to verify the test case;
and when the test case passes the verification, outputting the test case to test the code file by using the test case.
8. An interface document creation apparatus, characterized by comprising:
the device comprises a request receiving module, a file generation module and a code file generation module, wherein the request receiving module is used for acquiring a file identifier in an interface document generation request and a code file corresponding to the file identifier when the interface document generation request is received;
the code conversion module is used for converting the format of the code information in the code file according to the language type of the code file;
the code comparison module is used for comparing the code information after format conversion with each piece of preset annotation information in a preset annotation set to obtain an interface code of an annotation corresponding to the preset annotation information;
and the document generation module is used for taking preset annotation information corresponding to the interface code as target annotation information, and inputting the interface code and the target annotation information into a preset document template to generate a standard interface document.
9. An interface document generation device characterized by comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein:
the computer program, when executed by the processor, implements the steps of the interface document generation method of any one of claims 1 to 7.
10. A computer storage medium, characterized in that the computer storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the interface document generation method according to any one of claims 1 to 7.
CN201910971900.3A 2019-10-12 2019-10-12 Interface document generation method, device, equipment and computer storage medium Pending CN110955416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910971900.3A CN110955416A (en) 2019-10-12 2019-10-12 Interface document generation method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910971900.3A CN110955416A (en) 2019-10-12 2019-10-12 Interface document generation method, device, equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN110955416A true CN110955416A (en) 2020-04-03

Family

ID=69975628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910971900.3A Pending CN110955416A (en) 2019-10-12 2019-10-12 Interface document generation method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN110955416A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475150A (en) * 2020-04-07 2020-07-31 广州致远电子有限公司 Cross-language binding method, device, equipment and storage medium
CN111507079A (en) * 2020-04-08 2020-08-07 杭州涂鸦信息技术有限公司 Multi-language document generation method, system and equipment
CN111695330A (en) * 2020-06-30 2020-09-22 望海康信(北京)科技股份公司 Method and device for generating table, electronic equipment and computer-readable storage medium
CN111898345A (en) * 2020-07-24 2020-11-06 北京车和家信息技术有限公司 Data processing method and device based on detailed design document
CN111984228A (en) * 2020-07-09 2020-11-24 招联消费金融有限公司 Interface document processing method and device, computer equipment and storage medium
CN112130830A (en) * 2020-08-25 2020-12-25 汉海信息技术(上海)有限公司 Interface generation method and device and electronic equipment
CN112131293A (en) * 2020-09-21 2020-12-25 平安国际智慧城市科技股份有限公司 Interface management method, device, terminal equipment and storage medium
CN112307404A (en) * 2020-11-12 2021-02-02 山东云海国创云计算装备产业创新中心有限公司 Document website setting method, device, equipment and medium based on source file
CN112307723A (en) * 2020-08-31 2021-02-02 北京字节跳动网络技术有限公司 Method and device for generating code document and electronic equipment
CN112463261A (en) * 2020-11-20 2021-03-09 北京达佳互联信息技术有限公司 Interface calling method and device
CN112583891A (en) * 2020-11-19 2021-03-30 联通智网科技有限公司 Interface document acquisition method and device and server
CN112650533A (en) * 2020-12-22 2021-04-13 深圳前海微众银行股份有限公司 Interface document generation method and device and terminal equipment
CN115146604A (en) * 2022-07-01 2022-10-04 广州高专资讯科技有限公司 Interface technology document generation method, device, equipment and storage medium
CN115904482A (en) * 2022-11-30 2023-04-04 杭州巨灵兽智能科技有限公司 Interface document generation method, device, equipment and storage medium
CN116431135A (en) * 2023-06-12 2023-07-14 江西五十铃汽车有限公司 Method, system, computer and readable storage medium for writing automobile code
CN116501306A (en) * 2023-06-29 2023-07-28 深圳市银云信息技术有限公司 Method for generating interface document code based on natural language description

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080022266A1 (en) * 2006-07-24 2008-01-24 Hudson Thomas R Applying Deferred Refactoring and API Changes in an Ide
CN102043624A (en) * 2010-12-17 2011-05-04 青岛海信网络科技股份有限公司 Method for automatically programming intermediate communication interface and device
CN102129365A (en) * 2010-01-20 2011-07-20 阿里巴巴集团控股有限公司 Method and device for generating code documentations
US20110202933A1 (en) * 2010-02-17 2011-08-18 Justin Lee Sherrill Automatically generating documentation on application programming interfaces
CN102368217A (en) * 2011-10-20 2012-03-07 镇江睿泰信息科技有限公司 Metadata driven REST (representational state transfer) style application development method and system
CN103473045A (en) * 2013-08-27 2013-12-25 广州华多网络科技有限公司 Method and device for generating interface documents
US20170060812A1 (en) * 2015-08-31 2017-03-02 Qualtrics, Llc Presenting views of an electronic document
CN107729228A (en) * 2017-08-24 2018-02-23 北京网众共创科技有限公司 Interface test method, device, storage medium and processor
US20180067739A1 (en) * 2016-09-06 2018-03-08 Jacob Harris Apkon Techniques for generating a graphical user interface to display documentation for computer programs
CN107894952A (en) * 2017-11-08 2018-04-10 中国平安人寿保险股份有限公司 Generation method, device, equipment and the readable storage medium storing program for executing of interface testing use-case
CN108241503A (en) * 2016-12-23 2018-07-03 北京国双科技有限公司 The generation method and device of explanatory notes
CN108255714A (en) * 2018-01-02 2018-07-06 深圳壹账通智能科技有限公司 Interface document builds test method and terminal device
US20180324051A1 (en) * 2017-05-05 2018-11-08 Servicenow, Inc. User interface for automated flows within a cloud based developmental platform
US20190012151A1 (en) * 2017-07-06 2019-01-10 Terrance HOLBROOK Interface for building and updating processing modules in a manufacturing environment
CN109375922A (en) * 2018-09-26 2019-02-22 深圳壹账通智能科技有限公司 A kind of automatic generation method and terminal device of interface document
CN109558558A (en) * 2018-11-28 2019-04-02 四川长虹电器股份有限公司 A method of it improving Egret engine and issues project loading velocity
CN109976748A (en) * 2019-02-28 2019-07-05 南京南瑞继保电气有限公司 A kind of program processing method, terminal, server and computer storage medium
CN110309099A (en) * 2019-06-28 2019-10-08 深圳前海微众银行股份有限公司 Interface managerial method, device, equipment and computer readable storage medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080022266A1 (en) * 2006-07-24 2008-01-24 Hudson Thomas R Applying Deferred Refactoring and API Changes in an Ide
CN102129365A (en) * 2010-01-20 2011-07-20 阿里巴巴集团控股有限公司 Method and device for generating code documentations
US20110202933A1 (en) * 2010-02-17 2011-08-18 Justin Lee Sherrill Automatically generating documentation on application programming interfaces
CN102043624A (en) * 2010-12-17 2011-05-04 青岛海信网络科技股份有限公司 Method for automatically programming intermediate communication interface and device
CN102368217A (en) * 2011-10-20 2012-03-07 镇江睿泰信息科技有限公司 Metadata driven REST (representational state transfer) style application development method and system
CN103473045A (en) * 2013-08-27 2013-12-25 广州华多网络科技有限公司 Method and device for generating interface documents
US20170060812A1 (en) * 2015-08-31 2017-03-02 Qualtrics, Llc Presenting views of an electronic document
US20180067739A1 (en) * 2016-09-06 2018-03-08 Jacob Harris Apkon Techniques for generating a graphical user interface to display documentation for computer programs
CN108241503A (en) * 2016-12-23 2018-07-03 北京国双科技有限公司 The generation method and device of explanatory notes
US20180324051A1 (en) * 2017-05-05 2018-11-08 Servicenow, Inc. User interface for automated flows within a cloud based developmental platform
US20190012151A1 (en) * 2017-07-06 2019-01-10 Terrance HOLBROOK Interface for building and updating processing modules in a manufacturing environment
CN107729228A (en) * 2017-08-24 2018-02-23 北京网众共创科技有限公司 Interface test method, device, storage medium and processor
CN107894952A (en) * 2017-11-08 2018-04-10 中国平安人寿保险股份有限公司 Generation method, device, equipment and the readable storage medium storing program for executing of interface testing use-case
CN108255714A (en) * 2018-01-02 2018-07-06 深圳壹账通智能科技有限公司 Interface document builds test method and terminal device
CN109375922A (en) * 2018-09-26 2019-02-22 深圳壹账通智能科技有限公司 A kind of automatic generation method and terminal device of interface document
CN109558558A (en) * 2018-11-28 2019-04-02 四川长虹电器股份有限公司 A method of it improving Egret engine and issues project loading velocity
CN109976748A (en) * 2019-02-28 2019-07-05 南京南瑞继保电气有限公司 A kind of program processing method, terminal, server and computer storage medium
CN110309099A (en) * 2019-06-28 2019-10-08 深圳前海微众银行股份有限公司 Interface managerial method, device, equipment and computer readable storage medium

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475150A (en) * 2020-04-07 2020-07-31 广州致远电子有限公司 Cross-language binding method, device, equipment and storage medium
CN111475150B (en) * 2020-04-07 2023-12-05 广州致远电子股份有限公司 Cross-language binding method, device, equipment and storage medium
CN111507079B (en) * 2020-04-08 2023-08-18 杭州涂鸦信息技术有限公司 Multi-language document generation method, system and equipment
CN111507079A (en) * 2020-04-08 2020-08-07 杭州涂鸦信息技术有限公司 Multi-language document generation method, system and equipment
CN111695330A (en) * 2020-06-30 2020-09-22 望海康信(北京)科技股份公司 Method and device for generating table, electronic equipment and computer-readable storage medium
CN111695330B (en) * 2020-06-30 2023-10-27 望海康信(北京)科技股份公司 Method and device for generating table, electronic equipment and computer readable storage medium
CN111984228A (en) * 2020-07-09 2020-11-24 招联消费金融有限公司 Interface document processing method and device, computer equipment and storage medium
CN111984228B (en) * 2020-07-09 2023-12-12 招联消费金融有限公司 Interface document processing method and device, computer equipment and storage medium
CN111898345A (en) * 2020-07-24 2020-11-06 北京车和家信息技术有限公司 Data processing method and device based on detailed design document
CN112130830B (en) * 2020-08-25 2024-03-19 汉海信息技术(上海)有限公司 Interface generation method and device and electronic equipment
CN112130830A (en) * 2020-08-25 2020-12-25 汉海信息技术(上海)有限公司 Interface generation method and device and electronic equipment
CN112307723A (en) * 2020-08-31 2021-02-02 北京字节跳动网络技术有限公司 Method and device for generating code document and electronic equipment
CN112131293A (en) * 2020-09-21 2020-12-25 平安国际智慧城市科技股份有限公司 Interface management method, device, terminal equipment and storage medium
CN112307404A (en) * 2020-11-12 2021-02-02 山东云海国创云计算装备产业创新中心有限公司 Document website setting method, device, equipment and medium based on source file
CN112583891B (en) * 2020-11-19 2021-07-06 联通智网科技有限公司 Interface document acquisition method and device and server
CN112583891A (en) * 2020-11-19 2021-03-30 联通智网科技有限公司 Interface document acquisition method and device and server
CN112463261A (en) * 2020-11-20 2021-03-09 北京达佳互联信息技术有限公司 Interface calling method and device
CN112650533A (en) * 2020-12-22 2021-04-13 深圳前海微众银行股份有限公司 Interface document generation method and device and terminal equipment
CN112650533B (en) * 2020-12-22 2024-03-19 深圳前海微众银行股份有限公司 Interface document generation method and device and terminal equipment
CN115146604A (en) * 2022-07-01 2022-10-04 广州高专资讯科技有限公司 Interface technology document generation method, device, equipment and storage medium
CN115904482A (en) * 2022-11-30 2023-04-04 杭州巨灵兽智能科技有限公司 Interface document generation method, device, equipment and storage medium
CN115904482B (en) * 2022-11-30 2023-09-26 杭州巨灵兽智能科技有限公司 Interface document generation method, device, equipment and storage medium
CN116431135A (en) * 2023-06-12 2023-07-14 江西五十铃汽车有限公司 Method, system, computer and readable storage medium for writing automobile code
CN116431135B (en) * 2023-06-12 2023-09-22 江西五十铃汽车有限公司 Method, system, computer and readable storage medium for writing automobile code
CN116501306A (en) * 2023-06-29 2023-07-28 深圳市银云信息技术有限公司 Method for generating interface document code based on natural language description
CN116501306B (en) * 2023-06-29 2024-03-26 深圳市银云信息技术有限公司 Method for generating interface document code based on natural language description

Similar Documents

Publication Publication Date Title
CN110955416A (en) Interface document generation method, device, equipment and computer storage medium
CN107545181B (en) Program operating method, terminal, and computer-readable storage medium
US9811605B2 (en) Methods, apparatuses and computer program products for automated learning of data models
CN110750991B (en) Entity identification method, device, equipment and computer readable storage medium
CN111475694A (en) Data processing method, device, terminal and storage medium
CN111581920A (en) Document conversion method, device, equipment and computer storage medium
CN114253995A (en) Data tracing method, device, equipment and computer readable storage medium
CN110688315A (en) Interface code detection report generation method, electronic device, and storage medium
CN112286486B (en) Operation method of application program on intelligent terminal, intelligent terminal and storage medium
CN113434134A (en) Component processing method and device, electronic equipment and storage medium
CN112732379A (en) Operation method of application program on intelligent terminal, terminal and storage medium
CN113268232B (en) Page skin generation method and device and computer readable storage medium
WO2019052143A1 (en) Jsx file generation method and apparatus, storage medium and computer device
CN113157256A (en) Interface code generation method and device, electronic equipment, storage medium and product
CN109740074B (en) Method, device and equipment for processing parameter configuration information
CN111026669A (en) Test log management method, test log management device, and storage medium
CN110727436A (en) Operation interface script execution method and device, terminal equipment and storage medium
CN112947912A (en) Method and device for generating code, electronic equipment and storage medium
CN113190434B (en) Test case generation method and device, storage medium and computer equipment
EP4053713A1 (en) Question and answer method and apparatus based on knowledge graph
CN113536767A (en) Data processing method, device, equipment, medium and computer program product
CN109635175B (en) Page data splicing method and device, readable storage medium and electronic equipment
CN113256253A (en) Data processing method, device, equipment, computer readable storage medium and product
CN111897529A (en) Front-end component conversion method, device, equipment and readable storage medium
CN113672879A (en) Image processing method, apparatus, device and computer medium for preventing code leakage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination