Skip to content

Commit

Permalink
✨ Feature(custom): update api doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuingsmile committed Mar 19, 2024
1 parent 872a1a7 commit 922f04f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/server/apiDoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PicList内置了一个小型的服务器,用于接收来自其他应用或其
发送请求时添加URL查询参数\`key\`即可,例如:\`http://xxx:36677/upload?key=xxx\`。
### 表单上传 <Badge type="tip" text="2.6.3+" />
### 表单上传
- 请求方法: \`POST\`
- url: \`http://127.0.0.1:36677/upload\` (此处以默认配置为例)
Expand All @@ -29,11 +29,12 @@ PicList内置了一个小型的服务器,用于接收来自其他应用或其
即可上传。
::: tip Tip
### configName和picbed参数
PicList支持通过设置\`picbed\`和\`configName\`两个URL查询参数来指定上传图床和配置文件。例如:
\`http://127.0.0.1:36677/upload?picbed=aws-s3&configName=piclist-test\`
该配置将会使用\`aws-s3\`图床,并且使用\`piclist-test\`配置文件。
:::
返回的数据:
Expand Down

0 comments on commit 922f04f

Please sign in to comment.