Chapter 4. Creating a RESTful API with NodeJS and ExpressJS

REST (REpresentational State Transfer) has become the modern standard for building scalable web services. It is fast replacing older alternatives such as SOAP (Simple Object Access Protocol) and WSDL (Web Services Description Language). RESTful APIs have earned a widespread acceptance across the Internet because of their simplicity, performance, and maintainability.

On the other hand, ExpressJS is one of the most popular web servers for NodeJS. It comes with support for building RESTful APIs over HTTP and JSON out-of-the-box. ExpressJS not only provides endpoints for APIs, but is also suitable for building single-page, multi-page, and hybrid applications.

Finally, using NodeJS as an API ...

Get Web Application Development with MEAN now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.