amazon-web-services - 使用命令行工具将 Swagger API 导入 AWS API Gateway

标签 amazon-web-services swagger aws-cli aws-api-gateway

亚马逊发布此消息:https://aws.amazon.com/about-aws/whats-new/2016/04/amazon-api-gateway-supports-swagger-definition-import/ ,说现在可以使用 aws 导入 Swagger API命令行工具。
我在用:

aws --version
aws-cli/1.10.20 Python/2.7.9 Linux/3.16.0-4-amd64 botocore/1.4.11

但是我在 aws apigateway help 中找不到命令这将允许我使用 swagger 文件导入或更新 API。

目前,我们正在使用 aws-apigateway-importer为了这。切换到 aws 真的很棒只要。

谢谢。

最佳答案

是的,如前所述,命令是 import-rest-api .

aws apigateway import-rest-api

如果您的 CLI 不包含此操作,请更新到最新版本的 AWS CLI。

希望这可以帮助。

最好的事物,

Jurgen,API 网关

关于amazon-web-services - 使用命令行工具将 Swagger API 导入 AWS API Gateway,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36618412/

相关文章:

jax-rs - 文档@ApiOperation 包含详细描述

c# - 如何在 Swagger-ui 进行的 oauth2/token 调用中发送 "audience"字段?

amazon-web-services - AWS API Gateway websocket 发送消息到连接

amazon-web-services - 如何将AWS ACCESS KEY映射到IAM用户?

amazon-web-services - 污染 eks 节点组

swagger - OpenAPI 3.0 - 有条件嵌套对象

amazon-web-services - AWS Cost Explorer API - 查询兑换的积分?

javascript - AWS CLI 无效的 JSON 错误 - 需要用双引号引起来的属性名称

aws-cloudformation - 通过控制台更新与通过 CLI 使用相同 json 更新时 AWS Cloudformation 堆栈的差异

python - 使用 Python Boto 和 Amazon Glacier concurrent.ConcurrentUploader 保证数据完整性?