我们可以在 wso2 中发送附件作为正文参数 api 吗?
can we send an attachment in wso2 for an api as body parameter?
我们正在使用 wso2 API MANAGER 3.0.0,我们有一种情况,我们想要发布一个 API 其请求正文参数应该是一个附件
可以在 wso2 中发送附件吗?
在 WSO2 API 管理器中使用以下 Swagger 文件创建一个新的 API。
swagger: '2.0'
info:
description: 'Sample'
version: 1.0.5
title: File Upload
host: fileupload.swagger.io
basePath: /v2
paths:
/upload:
post:
summary: upload a file
description: ''
consumes:
- multipart/form-data
parameters:
- in: formData
name: uploadFile
description: Upload file
required: true
type: file
responses:
'200':
description: Valid input
我们正在使用 wso2 API MANAGER 3.0.0,我们有一种情况,我们想要发布一个 API 其请求正文参数应该是一个附件 可以在 wso2 中发送附件吗?
在 WSO2 API 管理器中使用以下 Swagger 文件创建一个新的 API。
swagger: '2.0'
info:
description: 'Sample'
version: 1.0.5
title: File Upload
host: fileupload.swagger.io
basePath: /v2
paths:
/upload:
post:
summary: upload a file
description: ''
consumes:
- multipart/form-data
parameters:
- in: formData
name: uploadFile
description: Upload file
required: true
type: file
responses:
'200':
description: Valid input