0.0.3 • Published 9 years ago
aws-apigateway-exporter v0.0.3
AWS API Gateway Exporter
Installation
At the start, you need to set up ~/.aws/credentials
and ~/.aws/config
what aws-sdk
read:
$ aws configure
Next, run it:
$ npm install -g aws-apigateway-exporter
Usage
If you run without options, it shows REST API list:
$ aws-apigateway-exporter
Specify --rest-api option
REST APIs:
┌──────────────────┬────────────┐
│ name │ ID │
├──────────────────┼────────────┤
│ Swagger Petstore │ wow1veryID │
├──────────────────┼────────────┤
│ api-test │ soIDmuchID │
└──────────────────┴────────────┘
If you run with only --rest-api
option, it shows Stage list:
$ aws-apigateway-exporter --rest-api wow1veryID
Specify --stage option
Stages:
┌──────┬────────┐
│ name │ ID │
├──────┼────────┤
│ prod │ SuchID │
└──────┴────────┘
If you run with --rest-api
and --stage
optins, it shows Swagger JSON:
$ aws-apigateway-exporter --rest-api wow1veryID --stage SuchID
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Swagger Petstore",
......
LICENSE
MIT