Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/rest/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Rest 如何使用Paw将JSON正文作为多部分/表单数据的一部分发送?_Rest_Paw App - Fatal编程技术网

Rest 如何使用Paw将JSON正文作为多部分/表单数据的一部分发送?

Rest 如何使用Paw将JSON正文作为多部分/表单数据的一部分发送?,rest,paw-app,Rest,Paw App,我有一个接受多部分/表单数据的REST请求。此请求已在使用角度前端。它需要名为files[]的参数中的文件数组和名为body的参数中的JSON正文。在Paw中,我似乎可以让端点识别多部分文件,但正文似乎不是正确的内容类型(application/json)。有没有办法为Paw中的多部分POST的每个部分指定内容类型 详情: 我在服务器端收到的错误消息是: org.springframework.web.HttpMediaTypeNotSupportedException: Content typ

我有一个接受多部分/表单数据的REST请求。此请求已在使用角度前端。它需要名为
files[]
的参数中的文件数组和名为
body
的参数中的JSON正文。在Paw中,我似乎可以让端点识别多部分文件,但正文似乎不是正确的内容类型(
application/json
)。有没有办法为Paw中的多部分POST的每个部分指定内容类型

详情:

我在服务器端收到的错误消息是:

org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/octet-stream' not supported
Paw中车身的配置为: