メインコンテンツへスキップ
POST
/
api
/
v1
/
files
/
images
上传图片
curl --request POST \
  --url http://localhost:5300/api/v1/files/images \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-Key: <api-key>' \
  --form file='@example-file'
{
  "code": 0,
  "data": {
    "file_key": "<string>"
  }
}

承認

X-API-Key
string
header
必須

ボディ

multipart/form-data
file
file
必須

图片文件

レスポンス

200 - application/json

上传成功

code
integer
:

0

data
object