apigatewaylocal

0.2.0 • Public • Published

ApiGatewayLocal

AWS ApiGateway Simulator for local tests using YAML or RAML to configure

0.1.0

Accept a simple YAML file to create a configuration file. BUG FIX: - receive query string params;

run.yml model:

title: Test report data
mediaType: application/json

actions:
    /test:
        file: /LambdaTest.js
        handler: main
        method: get
    /test2:
        file: /LambdaTest.js
        handler: main
        method: get

run.raml model:

#%RAML 1.0
title: Test report data
mediaType: application/json

traits:
    ./test/LambdaTest#main:

/test:
    get:
        is: [./test/LambdaTest#main]

After git clone is possible execute this way:

node ./lin/ApiGatewayLocal.js
  • Port default: 2020
  • File path default: ./run.raml
node ./lin/ApiGatewayLocal.js --file ./test/run.yml --port 3030

If you install global with:

npm -g install apigatewaylocal
apigatewaylocal --file ./test/run.yml --port 3030

if necessary create a symbolic link.

sudo ln -s ~/.npm-global/bin/apigatewaylocal /usr/local/bin/apigatewaylocal

Package Sidebar

Install

npm i apigatewaylocal

Weekly Downloads

2

Version

0.2.0

License

ISC

Unpacked Size

9.55 kB

Total Files

9

Last publish

Collaborators

  • r030285