apigateway-export

1.0.1 • Public • Published

apigateway-export

Export a (json) Swagger definition file from AWS API Gateway from Node. Implements AWS Signature Version 4.

npm install --save apigateway-export

usage

const fs = require('fs')
const getSpec = require('apigateway-export')

const config = {
  "aws_access_key_id": String,
  "aws_secret_access_key": String,
  "region": String, // ie: us-east-1"
  "restApiId": String,
  "stage": String
}

getSpec(config, (err, spec) => {
  if (err) return console.error(err)

  console.log(typeof spec) // -> 'Object'
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i apigateway-export

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • kareniel