【文件属性】:
文件名称:webpack-apidoc:Apidoc Webpack插件
文件大小:100KB
文件格式:ZIP
更新时间:2021-05-18 10:20:12
plugin api apidoc webpack document
webpack-apidoc
使用库生成RESTful Web API文档。
这个怎么运作
/path/api/stuff.js :
/**
* @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.
*/
安装
用安装
npm install --save-dev webpack-apidoc
用法
const Apidoc = require
【文件预览】:
webpack-apidoc-master
----.gitignore(137B)
----.babelrc(100B)
----package.json(907B)
----src()
--------index.js(1KB)
----example()
--------.babelrc(40B)
--------package.json(351B)
--------src()
--------webpack.config.js(582B)
--------yarn.lock(192KB)
----readme.md(2KB)
----.npmignore(17B)
----yarn.lock(168KB)