Skip to content

Instantly share code, notes, and snippets.

@rahulsahay19
Created October 5, 2020 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulsahay19/375bef41efc599ebe3279bfb0d05a0a3 to your computer and use it in GitHub Desktop.
Save rahulsahay19/375bef41efc599ebe3279bfb0d05a0a3 to your computer and use it in GitHub Desktop.
ocelot.json
{
"Routes": [
{
"DownstreamPathTemplate": "/api/v1/movies",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 5001
}
],
"UpstreamPathTemplate": "/movies",
"UpstreamHttpMethod": [ "Get" ]
},
{
"DownstreamPathTemplate": "/api/v1/series",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 5003
}
],
"UpstreamPathTemplate": "/series",
"UpstreamHttpMethod": [ "Get" ]
}
],
"GlobalConfiguration": {
"BaseUrl": "https://localhost:5006"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment