简体   繁体   English

如何将 Google Chat API 发现文档导入到 Postman 集合中?

[英]How to import the Google Chat API discovery document into a Postman collection?

I cannot get Postman to recognize https://chat.googleapis.com/$discovery/rest?version=v1我无法让 Postman 识别https://chat.googleapis.com/$discovery/rest?version=v1

I normally import Swagger documents and it creates collections for me without any problems.我通常导入 Swagger 文档,它会毫无问题地为我创建 collections。 But this is not a Swagger file, it's a Google " discovery document ".但这不是 Swagger 文件,它是 Google 的“发现文档”。 I would have thought that Postman would somehow recognize this Google format but it doesn't.我原以为 Postman 会以某种方式识别这种 Google 格式,但事实并非如此。 Is says: "Error while importing: format not recognized...".是说:“导入时出错:格式无法识别...”。

My question: Without adding all methods separately, how do I "consume" / import this API in a / as a Postman collection?我的问题:在不单独添加所有方法的情况下,我如何“使用”/将此 API 作为 Postman 集合导入/导入?

I've not used it but you could try the Google Discovery to OpenAPI 3.x Converter , which converts Google discovery documents to OpenAPI (Swagger) format.我没有使用它,但您可以尝试Google Discovery to OpenAPI 3.x Converter ,它将 Google Discovery 文档转换为 OpenAPI (Swagger) 格式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM