The issue you are facing, where your ASP.NET Core Web API controller method is not being hit, might be due to the configuration of Ocelot as an API Gateway. If Ocelot is configured, requests need to pass through it, and it may not be routing correctly when you are testing locally.