egg-swagger-doc:eggjs-swagger-doc Eggjs + egg-swagger-doc 生成RESTFUL 接口

上传者: 42131790 | 上传时间: 2023-09-09 13:17:48 | 文件大小: 92KB | 文件类型: ZIP
egg-swagger-ui 配置 前言 Eggjs 是阿里巴巴团队开发的,一个基于 Koajs 的框架,相当于二次封装,相比较 Koajs ,并没有那么高的自由度,但 Eggjs 这种带有规范性的开发更适合在企业中使用。 Swagger 是 RESTFUL 接口的文档在线自动生成工具。 此文档基于Eggjs + egg-swagger-doc 生成RESTFUL 接口供调试使用。 环境准备 操作系统:支持 macOS,Linux,Windows 运行环境:建议选择 LTS 版本,最低要求 8.x。 本文制作时对应eggjs版本: 2.27.0 目录结构 ${APP} ├─.vscode ├─app │ ├─contract // 存放对应type参数为body formData的传参值 │ ├─request // 请求参数 │ │ └─ user.ts │

文件下载

资源详情

[{"title":"( 32 个子文件 92KB ) egg-swagger-doc:eggjs-swagger-doc Eggjs + egg-swagger-doc 生成RESTFUL 接口","children":[{"title":"egg-swagger-doc-master","children":[{"title":".gitignore <span style='color:#111;'> 207B </span>","children":null,"spread":false},{"title":"app","children":[{"title":"entity","children":[{"title":"user.ts <span style='color:#111;'> 242B </span>","children":null,"spread":false}],"spread":true},{"title":"controller","children":[{"title":"user.ts <span style='color:#111;'> 2.54KB </span>","children":null,"spread":false},{"title":"home.ts <span style='color:#111;'> 201B </span>","children":null,"spread":false}],"spread":true},{"title":"contract","children":[{"title":"database.ts <span style='color:#111;'> 363B </span>","children":null,"spread":false},{"title":"response","children":[{"title":"user.ts <span style='color:#111;'> 943B </span>","children":null,"spread":false}],"spread":true},{"title":"request","children":[{"title":"user.ts <span style='color:#111;'> 669B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"service","children":[{"title":"Test.ts <span style='color:#111;'> 229B </span>","children":null,"spread":false}],"spread":true},{"title":"index.ts <span style='color:#111;'> 978B </span>","children":null,"spread":false},{"title":"router.ts <span style='color:#111;'> 343B </span>","children":null,"spread":false}],"spread":true},{"title":".eslintrc <span style='color:#111;'> 106B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":".autod.conf.js <span style='color:#111;'> 351B </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 421.45KB </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 171B </span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 717B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"nodejs.yml <span style='color:#111;'> 799B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 9.33KB </span>","children":null,"spread":false},{"title":"config","children":[{"title":"plugin.ts <span style='color:#111;'> 409B </span>","children":null,"spread":false},{"title":"config.prod.ts <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"config.default.ts <span style='color:#111;'> 2.87KB </span>","children":null,"spread":false},{"title":"config.local.ts <span style='color:#111;'> 143B </span>","children":null,"spread":false}],"spread":true},{"title":".eslintignore <span style='color:#111;'> 24B </span>","children":null,"spread":false},{"title":"appveyor.yml <span style='color:#111;'> 241B </span>","children":null,"spread":false},{"title":"typings","children":[{"title":"app","children":[{"title":"controller","children":[{"title":"index.d.ts <span style='color:#111;'> 309B </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"index.d.ts <span style='color:#111;'> 562B </span>","children":null,"spread":false}],"spread":false},{"title":"index.d.ts <span style='color:#111;'> 145B </span>","children":null,"spread":false}],"spread":false},{"title":"config","children":[{"title":"plugin.d.ts <span style='color:#111;'> 862B </span>","children":null,"spread":false},{"title":"index.d.ts <span style='color:#111;'> 374B </span>","children":null,"spread":false}],"spread":false},{"title":"index.d.ts <span style='color:#111;'> 40B </span>","children":null,"spread":false}],"spread":false},{"title":"test","children":[{"title":"app","children":[{"title":"controller","children":[{"title":"home.test.ts <span style='color:#111;'> 279B </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"Test.test.ts <span style='color:#111;'> 366B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明