CouchDB – Attaching Files Attaching Files using cURL You can attach files to CouchDB just like email. The file contains metadata like name and includes its MIME type, and the number of bytes the attachment contains. To attach files to a document you have to send PUT request to the server. Following is the syntax […]
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 […]
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 […]