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