In this video, learn about the approach 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.…We 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 hyper media 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 the 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 element resource.…
In this case, the API returns the detailed representation…of the repository.…
This Node.js course gives you an overview of a RESTful API and the logical steps of creating one. It explores three different APIs, focusing on their similarities and differences and how to effectively implement one. Instructor 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. Learn how to develop Twitter Notes, a sample web application that lets users leave notes for their Twitter friends. Use Twitter's API to implement a login flow and then design a web API. Additionally, get a closer look at several other real-world APIs, and 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
- Testing user-perceived performance
- Looking at APIs in the real world
- Best practices for building RESTful APIs