RESTful Web API Design with Node.js - Second Edition

Design and implement efficient RESTful solutions with this practical hands-on guide

RESTful Web API Design with Node.js - Second Edition

This ebook is included in a Mapt subscription
Valentin Bojinov

4 customer reviews
Design and implement efficient RESTful solutions with this practical hands-on guide
$0.00
$12.00
$29.99
$29.99p/m after trial
RRP $23.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781786469137
Paperback148 pages

Book Description

In this era of cloud computing, every data provisioning solution is built in a scalable and fail-safe way. Thus, when building RESTful services, the right choice for the underlying platform is vital. Node.js, with its asynchronous, event-driven architecture, is exactly the right choice to build RESTful APIs.

This book will help you enrich your development skills to create scalable, server-side, RESTful applications based on the Node.js platform.

Starting with the fundamentals of REST, you will understand why RESTful web services are better data provisioning solution than other technologies. You will start setting up a development environment by installing Node.js, Express.js, and other modules. Next, you will write a simple HTTP request handler and create and test Node.js modules using automated tests and mock objects. You will then have to choose the most appropriate data storage type, having options between a key/value or document data store, and also you will implement automated tests for it. This module will evolve chapter by chapter until it turns into a full-fledged and secure Restful service.

Table of Contents

Chapter 1: REST – What You Did Not Know
REST fundamentals
The REST goals
Working with WADL
Summary
Chapter 2: Getting Started with Node.js
Installing Node.js
Node Package Manager
Deploying an application
Microsoft Azure
Self-test questions
Summary
Chapter 3: Building a Typical Web API
Specifying the API
Implementing routes
Querying the API
Content negotiation
Cross-origin resource sharing
API versioning
Self-test questions
Summary
Chapter 4: Using NoSQL Databases
Key/value store - LevelDB
Document store - MongoDB
Database modeling with Mongoose
Testing a Mongoose model with Mocha
Creating a user-defined model around a Mongoose model
Wiring up a NoSQL database module to Express
Content delivery network
Self-test questions
Summary
Chapter 5: Implementing a Fully-Fledged RESTful Service
Extensibility and versioning
Working with arbitrary data
Linking
Implementing paging and filtering
Caching
Supplying the Cache-Control header in Express applications
Discovering and exploring RESTful services
Self-test questions
Summary
Chapter 6: Keeping the Bad Guys Out
Authentication
Authorization
Transport Layer Security
Self-test questions
Summary

What You Will Learn

  • Install, develop, and test your own Node.js user modules
  • Comprehend the differences between an HTTP and a RESTful application
  • Optimize RESTful service URI routing with best practices
  • Eliminate third-party dependencies in your tests with mocking
  • Learn about NoSQL data stores and integrate MongoDB in your Node.js application with Mongoose
  • Secure your services with NoSQL database integration within Node.js applications
  • Enrich your development skills to create scalable, server-side, RESTful applications based on the Node.js platform

Authors

Table of Contents

Chapter 1: REST – What You Did Not Know
REST fundamentals
The REST goals
Working with WADL
Summary
Chapter 2: Getting Started with Node.js
Installing Node.js
Node Package Manager
Deploying an application
Microsoft Azure
Self-test questions
Summary
Chapter 3: Building a Typical Web API
Specifying the API
Implementing routes
Querying the API
Content negotiation
Cross-origin resource sharing
API versioning
Self-test questions
Summary
Chapter 4: Using NoSQL Databases
Key/value store - LevelDB
Document store - MongoDB
Database modeling with Mongoose
Testing a Mongoose model with Mocha
Creating a user-defined model around a Mongoose model
Wiring up a NoSQL database module to Express
Content delivery network
Self-test questions
Summary
Chapter 5: Implementing a Fully-Fledged RESTful Service
Extensibility and versioning
Working with arbitrary data
Linking
Implementing paging and filtering
Caching
Supplying the Cache-Control header in Express applications
Discovering and exploring RESTful services
Self-test questions
Summary
Chapter 6: Keeping the Bad Guys Out
Authentication
Authorization
Transport Layer Security
Self-test questions
Summary

Book Details

ISBN 139781786469137
Paperback148 pages
Read More
From 4 reviews

Read More Reviews