This project provide a sample that shows how to implement an API Gateway using Ocelot in .Net 6.
I also wrote an article in the following address that completely cover API Gateway Design Pattern:
https://www.linkedin.com/pulse/api-gateways-cnet-amir-doosti/
The solution contains one .Net Core API project which is written in Visual Studio. It also contains a help.html file for usage clarification.
- OS: Windows 10 Enterprise - 64 bits
- IDE: Visual Studio Enterprise 2022 (64 bits) - version 17.2.5
- Framework: .Net 6
- Language: C#
- Ocelot 18.0.0
Open the solution in Visual Studio and run it using F5. The help.html will open and by clicking on each URL, api gateway route your request to an external downstream service.