From the course: Advanced Azure Microservices with .NET for Developers
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Solution: Configuring additional routes in the API gateway - Azure Tutorial
From the course: Advanced Azure Microservices with .NET for Developers
Solution: Configuring additional routes in the API gateway
(exciting music) - [Narrator] To solve this challenge, we need to modify the ocelot.json configuration file. This is because we need to add some additional routes right here, and I have the code already in place, so let me paste it. As you can see, this is for the path query endpoint, so we're using queries/pets/all. And of course we're using get. And this is the port number of the pet microservice, because as you might remember, pet query is the pet query controller class that is implemented inside that microservice. Okay, now let's implement the code for the rescue query endpoint. Let's paste it. And here, as you can see, we're using queries/adoptions/all. We're using get as well. And this time we're using this other port, which is the port that the rescue query microservice is running on. We can see that in the launch setting station file. Okay, let's go back here. And finally let's configure the patient…