0x1306e6d / tollgate

An API gateway for your microservice.
MIT License
6 stars 1 forks source link

Load configuration from file #12

Closed 0x1306e6d closed 4 years ago

0x1306e6d commented 4 years ago

Loading configuration from file would make separate configuration from source code. First, support json file and yaml later. Here is an example:

{
  "endpoints": [
    {
      "method": "GET",
      "path": "/api/v2/berry/{idOrName}",
      "services": [
        {
          "uri": "http://berry:9080",
          "endpoint": {
            "path": "/berry/{idOrName}"
          }
        }
      ]
    }
  ]
}