图片上传
POST
http://localhost:8080/beverage/upload
接口描述
图片上传,需要设置请求头Content-Type
请求头
参数名
类型
描述
必填
Content-Type
string
示例:multipart/form-data; boundary=<calculated when request is sent>
必填
请求参数
参数名
类型
描述
必填
file
file
示例,图片
必填
id
integer
示例,32。饮品的ID
必填
响应参数
参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:Success
必填
data
string
示例:图片上传成功, 地址为: http://127.0.0.1:9000/images/红茶拿铁(热/冷).jpg
必填