From the course: .NET Microservices for Azure Developers

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Creating the Clinic microservice

Creating the Clinic microservice - Azure Tutorial

From the course: .NET Microservices for Azure Developers

Creating the Clinic microservice

- [Instructor] In this chapter, we're going to create the clinic microservice. This microservice will include the logic for starting a consultation with a given patient. Since we just want to receive the patient id, which is a pet id, but I'm using here the concept of ubiquitous language from DDD, there must be a way to obtain the patient's name and age. To do that, we're going to keep it simple and send an HTTP request to the management microservice so we can obtain the information of that particular pet. So let's go ahead and get started. Let's add a new project to the solution by using the ASP.NET Core Web API and let's name it Wpm.Clinic. And here, let's make sure we're using .NET 8 and we're using controllers and let's click on Create. Okay, let's tidy up a little bit. Let's remove weather forecast, and let's rename weather forecast controller to ConsultationController. And let's get rid of the contents and let's add API. And I'm going to implement a single endpoint, which is…

Contents