Software requirements always change, and these changes should not break the apps or destroy the businesses of those using our APIs. API versioning helps us keep old clients compatible while providing new clients with all the new features.
- View Offline
- [Narrator] In the previous video…we looked at documentation tools for APIs.…In this video, we are going to take a look…at API versioning and why it is important.…We'll see how API versioning can be done…by modifying the URL.…Then, we will look at API versioning using HTTP headers.…API versioning allow us to introduce new features…without breaking old clients.…It is important for many reasons.…No matter whether our software is successful or not,…requirements will always change.…API versioning makes it easier for us…to assimilate future requirements.…
Software development takes time,…so we can not expect the developers who use our API…to update their applications instantaneously.…API versioning allows us to give developers…of the deprecated API a grace period…while giving new developers all the cool features…that we introduce.…Finally, API versioning gives us the freedom…to try new things.…If we realize that our old design is complicated…we can start over by adding a new version.…Let's take a look at how API versioning is done in Express.…
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