python - 自动生成用于 APIDOC 的 api 注释
问题描述
我正在创建 API 文档并决定使用 APIDOC ( https://apidocjs.com/ ) 来生成我的文档。我想知道是否存在可以从我的 python api 文件自动生成内联文档注释的工具。
这是我想为我生成的结果:
"""
@api {get} /user/:id Request User information
@apiName GetUser
@apiGroup User
@apiParam {Number} id Users unique ID.
@apiSuccess {String} firstname Firstname of the User.
@apiSuccess {String} lastname Lastname of the User.
"""
解决方案
推荐阅读
- javascript - JS 脚本不会运行/执行(没有错误)
- c# - Razor Pages:如何在部分页面中包含 pagesection?
- testing - 无法通过 npm 链接运行本地版本的 testcafe
- css - 使小部件对齐类似于 iOS
- java - 双向扩展约束布局的宽度
- javascript - 如何将新文档批量添加到集合中?
- excel-formula - 在公式中附加分隔符
- c++ - 我可以通过哪些方式对来自不同类的对象进行分组?
- android - Android Studio - 这个 GUI-Item 是如何调用的?
- javascript - Discord.js - 从提及的用户那里获取最后一条消息