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 […]
CouchDB – Deleting a Database Deleting a Database using cURL Utility You can delete a database in CouchDB by sending a request to the server using DELETE method through cURL utility. Following is the syntax to create a database − $ curl -X DELETE http://127.0.0.1:5984/database name Using −X we can specify a custom request method […]
CouchDB – HTTP API Using HTTP request headers, you can communicate with CouchDB. Through these requests we can retrieve data from the database, store data in to the database in the form of documents, and we can view as well as format the documents stored in a database. HTTP Request Formats While communicating with the […]