Home »
MCQs »
CouchDB MCQs
Which is the correct command that is used to create a CouchDB database using cURL utility?
15. Which is the correct command that is used to create a CouchDB database using cURL utility?
- $ curl -X GET http://127.0.0.1:5984/database_name
- $ curl -X PUT http://127.0.0.1:5984/database_name
- $ curl -X PUT http://127.0.0.1:5984/document/database_name
- $ curl -X PUT http://127.0.0.1:5984/collection/database_name
Answer: B) $ curl -X PUT http://127.0.0.1:5984/database_name
Explanation:
The following command can be used to create a CouchDB database using cURL utility,
$ curl -X PUT http://127.0.0.1:5984/database_name