Technical requirements
The code for this chapter can be found in the GitHub repository at https://github.com/PacktPublishing/Pragmatic-Microservices-with-CSharp-and-Azure. The source code folder ch04
contains the code samples for this chapter.
The service implementation from the previous chapter is stored in the server
folder. There’s just a small change to the previous chapter with the models. The models contain annotations (Required
, MinLength
, and MaxLength
attributes). This information shows up in the OpenAPI document and can be used on creating the client. You can use the file Chapter04.server.sln
to open and run the solution. You need to start the service when running the client application. Based on your preference, you need to configure SQL Server or Azure Cosmos DB as discussed in the previous chapter. You can also use the in-memory repository instead so that you don’t need to have a database running. Change the configuration with the appsettings.json
file...