Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
While the user interface of CouchDB is handy for creating new databases and documents quickly, you will eventually want to get the data from those documents in a standardized way. Fortunately, JSON-formatted data is readily available from CouchDB through HTTP. We've started up CouchDB, and it lists all the databases here. Let's open up a new tab and go to /_all_dbs. You'll notice that those three databases are now listed again only in JSON format.
If we go to /restaurant, you might expect that all the records from restaurant are listed. However, this only lists the information about the restaurant database. To get a list of all of the documents in the restaurant database, go to /restaurant/_all_docs. Now again, we see all the same information that you would see if you navigate to restaurant here in Futon. We'd also like to be able to get the information about a single document.
To do that, copy the ID and paste it in as the last segment of the URL. All of the data from this document is now displayed in JSON format, including the name and the content that we entered earlier. Retrieving documents from CouchDB is as easy as making an HTTP request. Once you have the key for the document and the database where it's stored, you have everything you need to get the data back in JSON format.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 103158 Viewers
61 Video lessons · 89845 Viewers
71 Video lessons · 73457 Viewers
56 Video lessons · 105006 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.