# swggar2Api **Repository Path**: wws_1993/swggar2interface ## Basic Information - **Project Name**: swggar2Api - **Description**: 将swagger接口、实例之类的玩意儿拉取到本地生成ts声明文件 - **Primary Language**: NodeJS - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2022-03-28 - **Last Updated**: 2024-08-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # swggar2interface V2.0 #### 介绍 相比1.0版本,2.0优化了配置方案,可以更便捷的导出所需接口文件及DTO类型文件 将swagger接口、实例之类的玩意儿拉取到本地生成ts声明文件,如果觉得好用,那就给个star吧~ #### 软件架构 依赖Node环境 #### 安装教程 1. 修改入口文件(main.js)中的 swaggerurl 常量,将其设置为后台提供的swagger地址,如:http://127.0.0.1:9906/v2/api-docs 2. npm install or cnpm install 3. node ./main.js 4. enjoy it! #### 使用说明 1. 默认导出文件会在./apis下,如果需要修改默认导出文件夹名,可以修改main.js中root常量 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request