Files
mlb-gameday-dotnet-react/gateway/ocelot.json
2023-06-01 08:52:05 -05:00

187 lines
4.5 KiB
JSON

{
"GlobalConfigruation": {
"BaseUrl": "http://localhost:5500"
},
"Routes": [
{
"DownstreamPathTemplate": "/api/divisions",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "divisions-service",
"Port": 80
}
],
"UpstreamPathTemplate": "/api/divisions",
"UpstreamHttpMethod": [ "GET" ]
},
{
"UpstreamPathTemplate": "/api/divisions/{id}",
"UpstreamHttpMethod": [ "GET" ],
"DownstreamPathTemplate": "/api/divisions/{id}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "divisions-service",
"Port": 80
}
]
},
{
"UpstreamPathTemplate": "/api/games",
"UpstreamHttpMethod": [ "GET", "POST" ],
"DownstreamPathTemplate": "/api/games",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "games-service",
"Port": 80
}
]
},
{
"UpstreamPathTemplate": "/api/games/{id}",
"UpstreamHttpMethod": [ "GET" ],
"DownstreamPathTemplate": "/api/games/{id}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "games-service",
"Port": 80
}
]
},
{
"UpstreamPathTemplate": "/api/leagues",
"UpstreamHttpMethod": [ "GET" ],
"DownstreamPathTemplate": "/api/leagues",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "leagues-service",
"Port": 80
}
]
},
{
"UpstreamPathTemplate": "/api/leagues/{id}",
"UpstreamHttpMethod": [ "GET" ],
"DownstreamPathTemplate": "/api/leagues/{id}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "leagues-service",
"Port": 80
}
]
},
{
"UpstreamPathTemplate": "/api/seasons",
"UpstreamHttpMethod": [ "GET" ],
"DownstreamPathTemplate": "/api/seasons",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "seasons-service",
"Port": 80
}
]
},
{
"UpstreamPathTemplate": "/api/seasons/{id}",
"UpstreamHttpMethod": [ "GET" ],
"DownstreamPathTemplate": "/api/seasons/{id}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "seasons-service",
"Port": 80
}
]
},
{
"UpstreamPathTemplate": "/api/sports",
"UpstreamHttpMethod": [ "GET" ],
"DownstreamPathTemplate": "/api/sports",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "sports-service",
"Port": 80
}
]
},
{
"UpstreamPathTemplate": "/api/sports/{id}",
"UpstreamHttpMethod": [ "GET" ],
"DownstreamPathTemplate": "/api/sports/{id}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "sports-service",
"Port": 80
}
]
},
{
"UpstreamPathTemplate": "/api/teams",
"UpstreamHttpMethod": [ "GET" ],
"DownstreamPathTemplate": "/api/teams",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "teams-service",
"Port": 80
}
]
},
{
"UpstreamPathTemplate": "/api/teams/{id}",
"UpstreamHttpMethod": [ "GET" ],
"DownstreamPathTemplate": "/api/teams/{id}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "teams-service",
"Port": 80
}
]
},
{
"UpstreamPathTemplate": "/api/venues",
"UpstreamHttpMethod": [ "GET" ],
"DownstreamPathTemplate": "/api/venues",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "venues-service",
"Port": 80
}
]
},
{
"UpstreamPathTemplate": "/api/venues/{id}",
"UpstreamHttpMethod": [ "GET" ],
"DownstreamPathTemplate": "/api/venues/{id}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "venues-service",
"Port": 80
}
]
},
{
"UpstreamPathTemplate": "/hubs/game",
"UpstreamHttpMethod": [ "GET" ],
"DownstreamPathTemplate": "/hubs/game",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "communication-hub",
"Port": 80
}
]
}
]
}