从移动设备/邮递员上传环回组件存储文件

我怎样才能从post-man上传一个镜像到环回组件的存储上传API。 我已经安装了API,并成功上传到存储通过file upload从我的网站的forms,但我不能从邮递员发布。 什么应该是请求正文和标题相同?

假设你有base api root http://myserver.com

要创build一个容器

1)url: http://myserver.com/containershttp://myserver.com/containers

2)请求头: Content-Type : application/json

3)身体(你可以设置在原始标签):

 { "name": "my-container" } 

4)方法: POST


将file upload到容器my-container

1)url: http://myserver.com/containers/my-container/upload : http://myserver.com/containers/my-container/upload

2)请求头: Content-Type : application/x-www-form-urlencoded

3)正文: form-data (您可以select标签form-data的文件form-data

key并不重要。 即使它可以是空的。

value应该是filetypes。

当您select文件的值types时,文件select器出现,您可以select文件。

4)方法: POST