This is a small .NET Core WebAPI application to try out Ocelot. An open-source .NET Core API Gateway.
Better way for API gateway is YARP.
- Nuget: Install-Package Ocelot.
- Configuration: create ocelot.json and define the ReRoutes.
- Program: configBuilder.AddJsonFile("ocelot.json").
- Startup: services.AddOcelot.
- Startup: app.UseOcelot().
- Run.
- Ocelot home page, documentation.
- Ocelot - GitHub page.
- C# Corner series: Ocelot and Service Discovery with Consul.
- Medium article: Microservices API Gateways - Ocelot for .NET Core + Video.
- Microsoft page: Implement API Gateways with Ocelot.
- PogsDotNet
- Part 1: API Gateway in a Nutshell
- Part 2: API Gateways with Ocelot
- Part 3: Response Aggregation.
- Altkom Software blog: Building Microservices on .NET Core - API Gateways With Ocelot.