Adapted from: https://www.pogsdotnet.com/2018/08/building-simple-api-gateways-with.html
Demonstrates routing http requests using Ocelot.
-
Run each project:
dotnet run --project Authentication dotnet run --project Catalog dotnet run --project Gateway dotnet run --project Ledger
-
Test each API gateway route defined in
ocelot.json
:- Users Endpoint .. http://localhost:52793/api/users
- Products Endpoint .. http://localhost:52793/api/products
- Transactions Endpoint .. http://localhost:52793/api/transactions
-
Test aggregate API route:
- User-Transactions Endpoint .. http://localhost:52793/api/user-transactions?userId=539bf338-e5de-4fc4-ac65-4a91324d8111