Posts

Showing posts from July, 2019

ASP.NET Core Web API and Microsoft Azure Cosmos DB emulator

Image
Hello friends. In this blog, I would like to share some examples of creating WebAPI's using ASP.NET Core with Microsoft Azure Cosmos DB as the back end. You can download the Azure Cosmos Emulator from the Microsoft website. The emulator is really helpful for development purposes as it creates a local environment. One major advantage is that developers can develop and test their applications locally without creating an Azure subscription. Once the testing is completed successfully, the cloud based Azure cosmos account comes into picture. In this example, I am creating a user using the API. For this purpose, I am using Microsoft Visual Studio 2019  and selected ".Net Core" project type. Then selected "Web API" as the project template. The project will be created with the below structure. In order to connect to the Azure Cosmos, we need to add the below Nuget package and we are all set to start the development. In this example, I am going t...