我们有一个 API 端点,可以在其中上传图像文件以及文件名(字符串)和描述(字符串)。
养蜂场/API 蓝图不允许我拥有类似的东西:
+ Request (multipart/form-data)
+ Headers
Authorization: [key]
+ Attributes
+ name (string, required) - A human-readable name of the Catalog Item
+ description (string, optional) - A human readable description of the Catalog Item
+ image (file, optional) - An image file corresponding to the Catalog Item
I get:
base type 'file' is not defined in the document
有没有办法在 API 蓝图中表示多部分/表单数据(例如上面的内容)?
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)