I have a document in which the user has two addresses, for example below. How to create a schema for this in python-eve?
Also, how do I create an API request to allow the user to update only zipcode. Do they need to rewrite the entire document?
{
_id: "joe",
name: "Joe Bookreader",
addresses: [
{
street: "123 Fake Street",
city: "Faketon",
state: "MA",
zip: "12345"
},
{
street: "1 Some Other Street",
city: "Boston",
state: "MA",
zip: "12345"
}
]
}
source
share