Home »
MCQs »
CouchDB MCQs
What is the command request to create a document using cURL utility?
22. What is the command request to create a document using cURL utility?
- curl -X PUT http://127.0.0.1:5984/database_name/document
- curl -X PUT http://127.0.0.1:5984/"id" -d ' { document} '
- curl -X PUT http://127.0.0.1:5984/database_name/"id" -d ' { document} '
- All of the above
Answer: C) curl -X PUT http://127.0.0.1:5984/database_name/"id" -d ' { document} '
Explanation:
The command request to create a document using cURL utility is:
curl -X PUT http://127.0.0.1:5984/database_name/"id" -d ' { document} '