【发布时间】:2019-06-11 08:34:36
【问题描述】:
我使用 Cloud Endpoints 公开了 30 多种方法。简而言之,除了我遵循规范的 2 种方法之外,所有方法都可以正常工作
在 yaml 中,我用粗体标记了出现问题的特定部分。如果我删除,文件将被正确解析和部署。
请参考从 --> 开始的最后 4 行:"formData"
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)
【问题讨论】:
-
部署时是否遇到错误?如果是这样,您能否更新问题以包含它?
标签: google-cloud-platform google-cloud-endpoints swagger-2.0