Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing Swagger API to AWS API Gateway using command line tool

Amazon published this news: https://aws.amazon.com/about-aws/whats-new/2016/04/amazon-api-gateway-supports-swagger-definition-import/, saying that now it is possible to import Swagger API using aws command line tool. I am using:

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

But I can't find a command in aws apigateway help that would allow me to import or update API using swagger file.

Currently, we're using aws-apigateway-importer for this. Would really great to swtich to aws only.

Thanks.

like image 290
Sergey Potapov Avatar asked Apr 14 '16 09:04

Sergey Potapov


2 Answers

Yes, as mentioned previously, the command is import-rest-api.

aws apigateway import-rest-api

If your CLI doesn't include this operation, please update to the latest version of the AWS CLI.

Hope this helps.

Best,

Jurgen, API Gateway

like image 108
Jurgen Avatar answered Sep 21 '22 20:09

Jurgen


The command is import-rest-api.

like image 21
Jordon Phillips Avatar answered Sep 18 '22 20:09

Jordon Phillips