Oreilly - RESTful Web API Design with Node.js
by Saleh Hamade | Publisher: Packt Publishing | Release Date: April 2016 | ISBN: 9781785284311
Explore the practical sides of REST to build data-centric applications with NodeAbout This VideoWork through a series of guidelines and best practices to efficiently design RESTful Web APIs with NodeUnderstand the structure of APIs, their authentication protocols, and their implementation toolsThis practical guide provides the knowledge you need to delve into the endless possibilities enabled by Big DataIn DetailRESTful Web APIs allow developers to create unprecedented applications by leveraging the data on the Internet. Since JavaScript is the language of the web, building APIs using Node.js provides a seamless development experience on both the front end and the back end.This video course gives you an overview of a RESTful API and goes through the logical steps of building one. It explores three different APIs, focusing on their similarities and differences to effectively implement one.We'll start off by defining APIs, showing how they can be built on top of HTTP, and listing the properties that make an API RESTful. We will develop Twitter Notes, a web application that lets its users leave notes for their Twitter friends. We will use Twitter's API to implement a login flow and then design a web API. In addition to using Twitter's API, we will take a closer look at two other real-world APIs—Facebook API and GitHub API. Finally, we'll end up honing some best practices to keep the APIs secure, maintainable, and performant.By the end of this course, you will have a good grasp of APIs, HTTP, REST, OAuth 1.0a, API testing, and API security. Since the course explores three different REST APIs, you will reach a level where you will be comfortable using any RESTful API, even if it does not have an SDK.
- Chapter 1 : REST Fundamentals
- The Course Overview 00:02:26
- What Is an API? 00:02:24
- Communication via HTTP 00:06:51
- Identifying REST Resources 00:04:29
- Properties of RESTful APIs 00:06:51
- Setting Up the Environment 00:07:08
- Chapter 2 : Consuming a RESTful API
- A Look at OAuth 1.0a 00:05:23
- Creating an OAuth Login Request 00:05:34
- Getting an Access Token 00:02:58
- Exploring Twitter’s REST API 00:10:43
- Saving Data in MongoDB 00:07:03
- Chapter 3 : Building a RESTful API
- Designing the API Specifications 00:03:36
- Creating the API Handlers 00:07:17
- Acceptance Testing with Postman 00:11:32
- Load Testing and Going Multicore 00:07:31
- Chapter 4 : APIs in the Real World
- Facebook Graph API 00:07:09
- GitHub API 00:05:08
- IFTTT 00:03:05
- Chapter 5 : Best Practices
- Security Considerations 00:03:46
- Documentation 00:04:33
- Versioning 00:02:09
- Caching 00:05:15