Writing basic REST API endpoints
The most common type of RESTful request on the Web is a HTTP
Read operation. An example of this is a simple request to view a web page through a URL. GET requests can be performed to read any kind of data and do not need to be supported by a database, but in order to implement the Create, Update, and Delete operations on data, some type of database or data store must be used, along with a REST Application Programming Interface (API).
CRUD with REST
Performing full CRUD operations with your web application can be done using the simple NPM, Bower, and Grunt application you have been working with thus far; we just need to write some API endpoints now to make this possible. Let's go back to our application CLI ...