O'Reilly logo

Mastering JavaScript Single Page Application Development by John Moore, Philip Klauzinski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing basic REST API endpoints

The most common type of RESTful request on the Web is a HTTP GET or 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required