Learn about retrieving requests from a remote API using the command line.
- [Woman] While it's easy to perform read actions…on an API using a browser,…assuming there's not authentication in the way,…the other methods are a little trickier,…so this is where command line utilities can help.…They make it possible to access…the API without writing code.…You may be familiar with Curl…and HTTPie is similar to Curl…but it's been tuned for API access…and has some great features we'll take advantage of here.…First, start the server.…See that it's listening on local host 8080.…
Let's go ahead and background it…so we can make calls.…Control Z and then bg…and you can see that it's running in the background.…Now, we can run HTTPie from the command line…to access the server.…Let's start with a simple command.…We'll perform the same operation we did…with the Chrome browser but this time we'll use HTTPie.…The command for HTTPie is http and then you put…the address in, local host:8080/api/v1/todolist.…
Now, the first thing we get back is information…from the server about the request.…200 okay great. There's a few other headers included here…
- Setting up the development environment
- Consuming an API using HTTPie
- Inspecting Mongo data
- Updating the server for MongoDB read functionality
- Setting up application endpoints
- Implementing user endpoints, progress endpoints, and promises
Skill Level Intermediate
Node.js: Build Your First Microservicewith Daniel Khan2h 9m Intermediate
Building a Website with Node.js and Express.jswith Ray Villalobos3h 16m Intermediate
1. API Fundamentals
2. Database Setup
3. Set Up the Fitbit API
4. Create the Progress API
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.