Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

API doc

Shino161 edited this page Jan 20, 2020 · 1 revision

后端使用3000端口,需要修改可以更改main.go文件中的r.Run(":3000")

  • swagger路径/appFile/swagger/index.html

上传安装包

crul例子:

curl --request POST \
  --url http://127.0.0.1:3000/appFile/uploadFile \
  --header 'cache-control: no-cache' \
  --header 'content-type: multipart/form-data' \
  --form upload=@xxx.ipa \
  --form 'UpdateDescription=更新说明' \
  --form ProjectId=asoco-app

Request

  • Method: POST
  • URL: /appFile/uploadFile
  • Headers:'content-type: multipart/form-data'
  • Params:
# 安装包所属项目
ProjectId=app
# 更新说明
UpdateDescription=更新说明
# 安装包文件
upload=@xxx.apk

Response

  • Body
{
  "code": 200,
  "message": "OK"
}
Clone this wiki locally