Implementation Microsoft Azure Cosmos DB Solutions
Here we have created two project
-
AzureCosmosDBApplication
-
AzureCosmosDBApi
-
AzureCosmosDBApplication: AzureCosmosDB Application is a simple web application in.Net Core. In this Application, we have simply implemented crud operation and pass the data to AzureCosmosDBApi throw the API call.
-
AzureCosmosDBApi: AzureCosmosDB API is a simple web API project in.Net Core. Before starting implementation of Azure Cosmos DB API. First, we have to install Microsoft.Azure.DocumentDB from the NuGet and its reference to our controller.
In this API project declare your EndpointUrl and PrimaryKey. This key you will get from your Azure Cosmos DB account.
For Crud operation we have implemented four methods:
- CustomerRegister
- GetCustomersLists
- UpdateCustomer
- DeleteCustomer