API document generation method and device, storage medium and computer equipment
A technology of computer equipment and computer programs, applied in the fields of methods and devices for generating API documents, storage media and computer equipment, can solve problems such as forgetting to update API documents, outdated actual functions, and API document descriptions that do not conform to existing API definitions, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] see figure 1 , figure 1 It is an implementation flowchart of the method for generating an API document in the embodiment of the present invention. combine figure 2 It can be obtained that the method for generating an API document in the embodiment of the present invention includes the following steps:
[0025] Step S101: Obtain the target API code written by the developer, the target code comment and synchronization script corresponding to the target API code. Wherein, the synchronization script is a program that can be executed.
[0026] Step S102: Generate a target API document corresponding to the target API code according to the target code annotation and the synchronization script.
[0027] Wherein, the target API code, the target code comment and the synchronization script are written by the developer and stored in the target code database.
[0028] In this embodiment, optionally, generating a corresponding target API document according to the target code an...
Embodiment 2
[0037] see figure 2 , figure 2 It is a partial structural framework diagram of the device for generating API documents in the embodiment of the present invention. combine figure 2 It can be obtained that an API document generation device 100 according to the embodiment of the present invention includes:
[0038] The acquisition module 110 is configured to acquire the target API code written by the developer, the target code comment and the synchronization script corresponding to the target API code. Wherein, the synchronization script is a program that can be executed.
[0039] The generation module 120 is configured to generate a target API document corresponding to the target API code according to the target code annotation and the synchronization script.
[0040] Wherein, the target API code, the target code comment and the synchronization script are written by the developer and stored in the target code database.
[0041] In this embodiment, optionally, an executio...
Embodiment 3
[0045] see image 3 ,refer to image 3 It can be seen that a storage medium 10 in the embodiment of the present invention, the storage medium 10, such as: ROM / RAM, magnetic disk, optical disk, etc., has a computer program 11 stored thereon, and when the computer program 11 is executed Realize the method for generating API documents as described in the first embodiment. Since the method for generating the API document has been described in detail in Embodiment 1, the description will not be repeated here.
[0046] The API document generation method realized by the embodiment of the present invention obtains the target API code written by the developer, the target code comment corresponding to the target API code and the synchronization script, and according to the target code comment and the synchronization script The script generates the target API document corresponding to the target API code, which solves the following problems in the prior art: since the API document and ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com