Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 899 Bytes

File metadata and controls

18 lines (12 loc) · 899 Bytes

Ocelot Api Gateway Example

This project is an example of Ocelot API Gateway implementation. It takes requests (API calls) and routes them to the microservices (BasketAPI and ProductAPI). Thanks to API Gateway our application has a single entrypoint.

Development

Run all projects separately with dotnet run command on its own project directory.

Now we have three application running on above given ports. We'll access these applications via Api Gateway (localhost:5000). These routes are defined in "ocelot.json" file in the OcelotApiGateway project. We can access our services llike below: