Exporting api definition from AWS API Gateway

前端 未结 5 1806
野趣味
野趣味 2020-12-17 23:49

I\'m creating an entire API in AWS API Gateway. Since I\'m using the graphical console, just because I\'m in a learning phase, I will need some way to create the same API pr

5条回答
  •  悲&欢浪女
    2020-12-18 00:16

    Open CLI and run following command

    aws apigateway get-export --parameters extensions='apigateway' --rest-api-id **** --stage-name dev --export-type swagger latestswagger2.json
    

    or

    Go to stage and export it

提交回复
热议问题