From the course: .NET Microservices for Azure Developers
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Challenge: Implementing BreedsController and validations - Azure Tutorial
From the course: .NET Microservices for Azure Developers
Challenge: Implementing BreedsController and validations
(upbeat music) - [Instructor] Now it's time for a challenge. The goal is for you to get real hands on practice implementing the bridge controller class and additional validations in the management microservice. On the other hand, if you'd like to skip it, please do and join me in the next chapter. If you accept the challenge, you'll need to implement the BreedsController class. It must expose the following endpoints. Also, you'll need to implement validations in both the pets controller and BreedsController classes. For example, if the pet or breed IDs don't exist, you should return status code 404 instead of 200. Additionally, if there's an error when creating a new item, you should return 500 and log the error information by using the ILogger of T interface. When you're done, join me in the next video and I'll walk you through how I implemented this.
Contents
-
-
-
-
Creating and cloning the repo1m 2s
-
(Locked)
Creating your first microservice using ASP.NET Core1m 54s
-
(Locked)
Creating and registering the DbContext for the microservice5m 49s
-
(Locked)
Creating the PetsController and returning the list of pets2m 36s
-
(Locked)
Obtaining a single pet in the PetsController1m 30s
-
(Locked)
Creating a new pet3m 21s
-
(Locked)
Challenge: Implementing BreedsController and validations1m 5s
-
(Locked)
Solution: Implementing BreedsController and validations1m 35s
-
-
-
-
-