From e25dcf4cf2580f79c4fe385a43392c81bdce1a84 Mon Sep 17 00:00:00 2001 From: dark Date: Tue, 24 Dec 2024 01:14:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20''?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- swagger.bat | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 swagger.bat diff --git a/swagger.bat b/swagger.bat new file mode 100644 index 0000000..62a7b6f --- /dev/null +++ b/swagger.bat @@ -0,0 +1,6 @@ +@REM 生成swagger文档,注意修改---------------------------->输出文件名------------------>域名---------------------->api文件名 +goctl api plugin -plugin goctl-swagger="swagger -filename minio-api.json -host https://minio-api-dev.gxxhygroup.com" -api minio.api -dir . +@REM ping 测试 文件服务器 +curl 10.1.1.124:8882/ping +@REM 上传文件,注意---------------------------------------修改文件名----------------------->上传路径不用修改----------------------->上传文件名 +curl 10.1.1.124:8882/file/uploadWithTimestamp -F "file=@./minio-api.json" -H "UploadPath: /knife4j/data/ROOT" -H "UploadFileName: minio-api.json" -v \ No newline at end of file