mysociety / popit-api

DEPRECATED - Development on PopIt has stopped and it is no longer being maintained
https://goo.gl/Vvej4Q
Other
17 stars 3 forks source link

Replace existing document on PUT request #107

Open chrismytton opened 9 years ago

chrismytton commented 9 years ago

Rather than just updating the changed members we replace the whole document on PUT requests. This matches the proper semantics for a PUT request, but is also a backwards incompatible change, so needs to be included in a new version of the API.

Will squash down the commits after review.

Fixes #95

struan commented 9 years ago

I'll take a punt at updating this with new versioning structure in a bit.