RESTful Web API Design with Node.js

Design and implement comprehensive RESTful solutions in Node.js

RESTful Web API Design with Node.js

Valentin Bojinov

1 customer reviews
Design and implement comprehensive RESTful solutions in Node.js
Mapt Subscription
FREE
€29.98/m after trial
eBook
€16.80
RRP €23.98
Save 29%
Print + eBook
€24.99
RRP €24.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
€0.00
€16.80
€24.99
€29.98p/m after trial
RRP €23.98
RRP €24.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781783985869
Paperback152 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 of the underlying platform is vital. Node.js, with its asynchronous, event-driven architecture, is just the right choice to build RESTful APIs.

This book will be your step-by-step guide in the RESTful world of Node.js. It starts with the implementation of a simple HTTP handler application and follows its evolution to a completed RESTful service solution, which introduces you to the best practices in developing RESTful services.

Table of Contents

Chapter 1: REST – What You Didn't Know
A brief history of REST
The REST goals
Working with WADL
Taking advantage of the existing infrastructure
Summary
Chapter 2: Getting Started with Node.js
Installing Node.js
Installing the Express framework and other modules
Setting up a development environment
Handling HTTP requests
Modularizing code
Testing Node.js
Deploying an application
Self-test questions
Summary
Chapter 3: Building a Typical Web API
Specifying the API
Implementing routes
Testing 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 NoSQL database solution
Content delivery network
Self-test questions
Summary
Chapter 5: Implementing a Full-fledged RESTful Service
Extensibility and versioning
Working with arbitrary data
Linking
Implementing paging and filtering
Caching
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

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

Authors

Table of Contents

Chapter 1: REST – What You Didn't Know
A brief history of REST
The REST goals
Working with WADL
Taking advantage of the existing infrastructure
Summary
Chapter 2: Getting Started with Node.js
Installing Node.js
Installing the Express framework and other modules
Setting up a development environment
Handling HTTP requests
Modularizing code
Testing Node.js
Deploying an application
Self-test questions
Summary
Chapter 3: Building a Typical Web API
Specifying the API
Implementing routes
Testing 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 NoSQL database solution
Content delivery network
Self-test questions
Summary
Chapter 5: Implementing a Full-fledged RESTful Service
Extensibility and versioning
Working with arbitrary data
Linking
Implementing paging and filtering
Caching
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 139781783985869
Paperback152 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

MEAN Web Development Book Cover
MEAN Web Development
€ 26.38
€ 2.64
AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
€ 28.78
€ 20.16
Node.js Design Patterns Book Cover
Node.js Design Patterns
€ 28.78
€ 5.76
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
€ 25.18
€ 5.04
AngularJS UI Development Book Cover
AngularJS UI Development
€ 26.38
€ 18.48
AngularJS Web Application Development Cookbook Book Cover
AngularJS Web Application Development Cookbook
€ 28.78
€ 5.76