操控平台前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
肖正 aba1cbbb26 first commit 4 months ago
..
.gitignore first commit 4 months ago
build.bat first commit 4 months ago
build.sh first commit 4 months ago
readme.md first commit 4 months ago

readme.md

前端 API 请求代理生成

前端 API 请求代理,可以通过 swagger.json 生成 typescript-axios 客户端的方式生成,然后拷贝到 src/api-services 文件夹

手动生成

脚本一键生成

Swagger Codegen 读取 swagger.json 生成 typescript-axios 客户端后,直接拷贝到 src/api-services 文件夹中

Swagger Codegen 可以通过为任何 API 生成服务端代码和客户端代码的方式来简化 OpenAPI 的构建过程,因此,项目开发团队可以更好地关注 API 的实现和应用 Github:https://github.com/swagger-api/swagger-codegen

环境准备

如何使用

  • 启动 API 端服务,确保 http://localhost:5005/ 可以访问
  • Windows:运行 build.bat
  • Linux / Mac:运行./build.sh

http://localhost:5005/ 为默认的 API 地址,如果要连接其他地址,请自行调整对应脚本