Take the following class:
class Account
{
public string Id { get; set;}
public string Description { get; set;
}
If I try to save an account object with Id of "123" and Description of "abc" using the .net client, it will be persisted as:
{
"Description": "abc"
}
If I put the following document to
http://localhost:8080/databases/test/docs/accounts/123 it will be persisted as:
{
"Id": "123",
"Description": "abc"
}
Why does this happen, and how do I persist a document using the http api that will follow the same format as that which is used by the .net client?