{
  "AppOptions": {
    "Name": "ApiGateway"
  },
  "LogOptions": {
    "Level": "Information",
    "LogTemplate": "{Timestamp:HH:mm:ss} [{Level:u4}] {Message:lj}{NewLine}{Exception}",
    "ElasticUri": "http://localhost:9200"
  },
  "HealthOptions": {
    "Enabled": false
  },
  "Yarp": {
    "routes": {
      "identity": {
        "clusterId": "identity",
        "match": {
          "path": "identity/{**catch-all}"
        },
        "Transforms":  [
        {
          "PathRemovePrefix": "identity"
        }
      ]
      },
      "flight": {
        "clusterId": "flight",
        "match": {
          "path": "flight/{**catch-all}"
        },
        "Transforms":  [
          {
            "PathRemovePrefix": "flight"
          }
        ]
      },
      "passenger": {
        "clusterId": "passenger",
        "match": {
          "path": "passenger/{**catch-all}"
        },
        "Transforms":  [
          {
            "PathRemovePrefix": "passenger"
          }
        ]
      },
      "booking": {
        "clusterId": "booking",
        "match": {
          "path": "booking/{**catch-all}"
        },
        "Transforms":  [
          {
            "PathRemovePrefix": "booking"
          }
        ]
      }
    },
    "clusters": {
      "flight": {
        "destinations": {
          "destination1": {
            "address": "http://localhost:5004"
          }
        }
      },
      "identity": {
        "destinations": {
          "destination1": {
            "address": "http://localhost:6005"
          }
        }
      },
      "passenger": {
        "destinations": {
          "destination1": {
            "address": "http://localhost:6012"
          }
        }
      },
      "booking": {
        "destinations": {
          "destination1": {
            "address": "http://localhost:6010"
          }
        }
      }
    }
  },
  "AllowedHosts": "*"
}
