An example how to build custom service discovery in Ocelot.
Documentation: Service Discovery > Custom Providers
This sample constains a basic setup using a custom service discovery provider.
cd ./DownstreamService/
dotnet run
Leave the service running.
cd ./ApiGateway/
dotnet run
Leave the gateway running.
To the URL: http://localhost:5000/categories
You should get the following response:
{
[ "category1", "category2" ]
}