apigateway

1.0.1 • Public • Published

Prepare configure files under some directory

{
  "uri": "/applepen/:id",
  "method": "get",
  "req": {
    "pen": {
      "url": "https://chaus.herokuapp.com/apis/apigateway/pens/:params.id",
      "req": {
        "name": "query.name",
        "token": "cookies.token"
      }
    },
    "apple": {
      "url": "https://chaus.herokuapp.com/apis/apigateway/apples/:params.id"
    }
  },
  "res": {
    "id": "pen.id",
    "pen": "pen.name",
    "apple": "apple.name",
    "taste": "apple.taste"
  }
}

Setup server

specify directory and port

apigateway config 3000

Readme

Keywords

none

Package Sidebar

Install

npm i apigateway

Weekly Downloads

2

Version

1.0.1

License

ISC

Last publish

Collaborators

  • sideroad