compared with
Version 4 by Sergey Avseyev
on Feb 26, 2013 11:34.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (12)

View Page History
POST /wonderland
> Content-Type: application/json
{"name": "Alice", "type": "person"}
{"name": "Alice", "species": "human"}
< 201
< X-Couchbase-CAS: 13023137187469131776
POST /wonderland/alice
> Content-Type: application/json
{"name": "Alice", "type": "person"}
{"name": "Alice", "species": "human"}
< 201
< X-Couchbase-CAS: 13023137187469131776
PUT /wonderland/white-rabbit
> Content-Type: application/json
{"name": "Write Rabbit", "type": "species": "rabbit"}
< 204
< X-Couchbase-CAS: 5045917818764787712
> Content-Type: application/json
> X-Couchbase-CAS: 12870165639474053120
{"name": "Duchess", "type": "person"}
{"name": "Duchess", "species": "human"}
< 409
< Content-Type: application/json
If the document being updated doesn't exist, you will get {{404 Not Found}} error
{code:none}
PUT /wonderland/red-king /wonderland/sheep
{"name": "Red King", "type": "card"}
{"name": "Sheep", "species": "sheep"}
< 404
< Content-Type: application/json
< Content-Length: 36
< X-Couchbase-CAS: 14571488446784471040
{"name": "Hatter", "type": "person"}
{"name": "Hatter", "species": "human"}
{code}