You've seen a
GET request earlier in this book when we used the
This time, let's issue a
GET request to access CouchDB and get a list of all of the databases on the server.
curl -X GET http://localhost:5984/_all_dbs
We used Terminal to trigger a
GET request to CouchDB's RESTful JSON API. We used one of the options:
curl, to define the HTTP method. In this instance, we used
GET. GET is the default method, so technically you could omit
-X if you wanted to. Once CouchDB processes the request, it sends back a list of the databases ...