我使用Cloud Endpoints公开了30多种方法。简而言之,除了2种方法,所有方法都能正常工作
在yaml中,我用粗体标记了发生问题的特定部分。如果删除,则文件已正确解析和部署。
请在“ formData”中引用从->开始的最后4行
post:
tags:
- "Companies"
description: "Add a new company"
operationId: "addCompany"
consumes:
- multipart/form-data
parameters:
- in: "formData"
name: "name"
description: "name of the company"
type: "string"
- in: "formData"
name: "map"
description: "map of the company (JSON)"
type: "string"
required: true
- in: "formData"
name: "hardnesses"
description: "list of hardnesses seperate by semicolon ;"
type: "string"
- in: "formData"
name: "file"
description: "Company logo"
type: "file"
这意味着我将无法上传文件吗?
感谢您的宝贵意见。
(问题在Github中:https://github.com/GoogleCloudPlatform/java-docs-samples/issues/1392)