This video aims to give the viewers an introduction to HTTP by focusing on the parts that are used in RESTful APIs. The terms that are explained in this video will be used throughout the course.
- [Saleh] In the previous video, we learned about…what an API is.…In this video, we are going to take a look at…the various parts of the HTTP protocol that are…used by RESTful APIs.…First, we will look at the HTTP request and examine…the parts that make up a request.…This includes a URL path, the HTTP method,…the request headers, and the request body.…Then, we will look at an HTTP response and learn about…the response's status code.…An HTTP request is the message that a client sends…to an HTTP server.…Our web browser sends an HTTP request whenever…we navigate to a webpage, download a file,…or submit a form.…
Here, we can see a sample HTTP request that was sent…as a result of signing in to Packt Publishing.…On the first line, POST indicates HTTP method,…/index.html indicates a URL path, and HTTP/1.1…indicates a protocol version that a client is using.…The next two lines are the HTTP request headers…and the last line is the request body.…So, what are all these fields and what do they mean?…First, we will take a look at the URL path.…
This Node.js training course gives you an overview of a RESTful API and the logical steps of building one. It explores three different APIs, focusing on their similarities and differences to effectively implement one. Author Saleh Hamadeh starts off by defining APIs, showing how they can be built on top of HTTP and listing the properties that make an API RESTful. Then learn how to develop Twitter Notes, a sample web application that lets its users leave notes for their Twitter friends. You'll use Twitter's API to implement a login flow and then design a web API. In addition, you'll get a closer look at two other real-world APIs—Facebook API and GitHub API. Finally, learn some best practices to keep APIs secure, maintainable, and efficient.
- Identifying REST resources
- Setting up the development environment
- Consuming a RESTful API
- Creating an OAuth login request
- Getting an access token
- Saving data in MongoDB
- Building a RESTful API
- Looking at APIs in the real world
- Best practices for building RESTful APIs