如何在RAML中添加表单数据,例如
我要添加
Content-Disposition:表单数据; name =“ missingSerialMailIssue.txt”; filename =“ missingSerialMailIssue.txt” 内容类型:文本/纯文本
-WebKitFormBoundary8pAVIXsriVuU1TUG-
在我的RAML中
到目前为止,我已经完成
post:
headers: !include ./../utils/headerFields.raml
description: Upload serial number file.
body:
multipart/form-data:
formParameters:
file:
description: uploaded serial number
required: true
type: file
responses:
200:
body:
application/json:
example: |
{my response json}
500:
description: Internal Server Error
但是上面的代码不起作用