Query Cosmos Document This Tutorial explains and lists all the necessary steps to query a document from Cosmos nosql database using its API in Mule 4. Here is the link for cosmos query document API query documents Authorization behavior for all the calls will be similar but we have to change verb as per…
Read MoreDelete Cosmos Document Delete Document – https://docs.microsoft.com/en-us/rest/api/cosmos-db/delete-a-document Authorization behaviour for all the calls will be similar but we have to change verb as per our need, so we have to update Dataweave and HTTP request call to Azure. Mule flow will look like this Input payload Dataweave Please change the resource id(we have…
Read MoreList Cosmos Document API We can use Document APIs to manage document in Cosmos DB collection https://docs.microsoft.com/en-us/rest/api/cosmos-db/documents List Document – https://docs.microsoft.com/en-us/rest/api/cosmos-db/list-documents Authorization behaviour for all the calls will be similar but we have to change verb as per our need, so we have to update Dataweave and HTTP request call to Azure. Mule flow will…
Read MoreCreate Cosmos Document This tutorial talks about how to create documents in cosmos using the cosmos API. We can use Document APIs to manage or create document in Cosmos DB collection. You can refer to the link for cosmos APIs – cosomos API Authorization behavior for all the calls will be similar but we…
Read MoreGenerate Auth token – call Cosmos DB SQL REST APIs Generate Authorization token – Cosmos DB REST APIs – we have to generate it as per REST api call we are making. More details about Cosmos DB – https://docs.microsoft.com/en-us/rest/api/cosmos-db/access-control-on-cosmosdb-resources For POC we will create Authorization token for calling create document in Cosmos DB collection…
Read MoreCreate Cosmos Database in Azure This tutorial talks about how to create cosmos database in microsoft azure cloud platform. Azure Cosmos DB is Microsoft’s globally distributed, multi-model database service. To learn more about cosmos db then please see – https://docs.microsoft.com/en-us/azure/cosmos-db/introduction Let’s create Cosmos DB in Azure Azure portal -> Cosmos DB -> Add …
Read More