Artie
Artie

Reputation: 11

REST and DocumentDB

I am creating a Xamarin Android application and I want to use DocumentDB, but unfortunately it's impossible to use Microsoft.Azure.DocumentDB NuGet package, and it seems the only way is to use REST.

How can I use REST for receiving, updating, adding data to DocumentDB with C#?

Upvotes: 1

Views: 118

Answers (1)

Fred
Fred

Reputation: 3362

There is a giant knowledge base about this. You should read it:

https://msdn.microsoft.com/en-us/library/azure/dn781481.aspx

They are also referencing a Github repository that contains examples on how to interact with that REST interface. It's really easy. Just start out by copying chunks of the code and adjust them to your needs:

https://github.com/Azure/azure-documentdb-dotnet/tree/master/samples/rest-from-.net

The code is well commented and explains all the steps in detail.

Upvotes: 1

Related Questions