Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 749 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 749 Bytes

Ocelot Service Discovery Custom Provider

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.

Instructions

1. Run Downstream Service app

cd ./DownstreamService/
dotnet run

Leave the service running.

2. Run API Gateway app

cd ./ApiGateway/
dotnet run

Leave the gateway running.

3. Make a HTTP request

To the URL: http://localhost:5000/categories
You should get the following response:

{
  [ "category1", "category2" ]
}