2
votes

I am struggling to understand how to use the Swagger Extension for the API Gateway:

http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions.html

I am using the Import/Export RestAPI via AWS CLI, but cannot find any example of how to use them from command line. Can you help?

Thanks

1

1 Answers

1
votes

Here's an example via the docs

aws apigateway import-rest-api --body 'file:///path/to/API_Swagger_template.json' --region us-west-2

Edit: here is a swagger example with extensions: https://github.com/awslabs/aws-apigateway-importer/blob/master/tst/resources/swagger/apigateway.json