Some data needs time to be computed on the server. This makes the server slow under heavy load. In this video, we will see the approach that GitHub uses to keep its responses fast.
- [Instructor] In the previous video,…we looked at the Facebook graph API.…In this video, we are going to take a look at GitHub's API.…You will see how GitHub uses two representations…for its content.…Then, we will discuss GitHub's use of HTTP verbs,…especially the Patch verb.…We will follow that by looking at how GitHub uses…HATEOAS or Hypermedia as the Engine of Application State.…Finally, we will look at conditional requests,…which use HTTP caching.…GitHub uses two kinds of representations in its API.…
It provides a summary representation of an object…when a list endpoint is hit.…The summary representation does not include any fields…that require computation on GitHub's servers.…The other representation is a detailed representation.…This representation is returned when…an element endpoint is hit.…It includes all the fields of an element.…Let's take a look at an example.…Here we hit the octokit.rb repository resource,…which is an elementary source.…In this case, the API returns the detailed representation…of the repository.…
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