POST 图片上传接口
图片上传接口免费开放,如果接口存在问题请邮件联系站长
POST /api/fileUpLoad
Body 请求参数
1 | file: file:///home/cles/图片/33.png |
请求参数
| 名称 | 位置 | 类型 | 必选 | 说明 |
|---|---|---|---|---|
| body | body | object | 否 | none |
| » file | body | string(binary) | 否 | none |
返回示例
1 | { |
400 Response
1 | { |
返回结果
| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
| 400 | Bad Request | none | Inline |
| 500 | Internal Server Error | none | Inline |
返回数据结构
状态码 200
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | none | |
| » message | string | true | none | none | |
| » data | object | true | none | none | |
| »» url | string | true | none | none |
状态码 400
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » error | string | true | none | none |
状态码 500
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » error | string | true | none | none |
评论
