The first step while building an API is to write the specifications. In this video, we will learn how to design the specifications from the data we have and the requirements that we want.
- [Lecturer] The sample applications requirements…show us that our users should be able to get…the notes for a particular user,…insert or delete individual notes,…and update the note.…Our users should not be able to move notes…to another user account,…or move a note to another friend.…Using these requirements we come to the conclusion…that our API does not need to expose…a friend's collection,…since the data in that collection is exclusively…Twitter data.…
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