CouchDB – Deleting a Document Deleting a Document using cURL Utility You can delete a document in CouchDB by sending an HTTP request to the server using DELETE method through cURL utility. Following is the syntax to delete a document. curl -X DELETE http : // 127.0.0.1:5984 / database name/database id?_rev id Using −X, we […]
Author Archives: user
CouchDB – Creating a Database Database is the outermost data structure in CouchDB where your documents are stored. You can create these databases using cURL utility provided by CouchDB, as well as Futon the web interface of CouchDB. Creating a Database using cURL Utility You can create a database in CouchDB by sending an HTTP […]
CouchDB – Updating a Document Updating Documents using cURL You can update a document in CouchDB by sending an HTTP request to the server using PUT method through cURL utility. Following is the syntax to update a document. curl -X PUT http://127.0.0.1:5984/database_name/document_id/ -d ”{ “field” : “value”, “_rev” : “revision id” }” Example Suppose there […]