Import Swagger APIs into AWS API Gateway using the command line tool

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

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

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

We are currently using aws-apigateway-importer . It would be great only swtich only aws .

Thanks.

+5
source share
2 answers
+3
source

Yes, as mentioned earlier, the import-rest-api command.

 aws apigateway import-rest-api 

If your CLI does not include this operation, upgrade it to the latest AWS CLI.

Hope this helps.

Best

Jürgen Gateway API

+5
source

Source: https://habr.com/ru/post/1247109/


All Articles