Aug 7th, 2015
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (1) curl -X PUT
  2. {"ok":true}
  3. (2) curl -X GET
  4. {"uuids":["ac5dc83eae5f8a312c285efbd6005e06"]}
  5. (3) curl -X PUT -d '{"Name":"Janez", "Surname":"Novak"}'
  6. {"ok":true,"id":"person_id","rev":"1-4f2518bf19c3ec916e09f99dcce71ff1"}
  7. (4) curl -X PUT -d '{"Name":"Peter", "Surname":"Novak"}'
  8. {"error":"conflict","reason":"Document update conflict."}
  9. (5) curl -X GET
  10. {"_id":"person_id","_rev":"1-4f2518bf19c3ec916e09f99dcce71ff1","Name":"Janez","Surname":"Novak"}
  11. (6) curl -X PUT -d
  12. '{"_rev":"1-4f2518bf19c3ec916e09f99dcce71ff1", "Name":"Peter", "Surname":"Novak"}'
  13. {"ok":true,"id":"person_id","rev":"2-8e558a9618023cc18322f3faf81cba3b"}
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.