RESTful Web API Design with Node.JS - Second Edition
內容描述
Design and implement efficient RESTful solutions with this practical hands on guide
About This Book
Create a fully featured RESTful API solution from scratch.
Learn how to leverage Node.JS, Express, MongoDB and NoSQL datastores to give an extra edge to your REST API design.
Use this practical guide to integrate MongoDB in your Node.js application.
Who This Book Is For
The ideal target audience for this book is web developers who have some experience with RESTful services. Familiarity with basic JavaScript programming techniques is required. No prior experience with Node.JS or Express is required.
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
In Detail
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 a RESTful web service is better than any other framework. You will then start creating development environment by installing node.js, express.js, and other modules. You will then write a simple HTTP request handler and create and test Node.js modules using automated tests and mock objects. You will also learn to build a Typical Web API making use of Ansible's advanced features. You will then store data by choosing the best option between a key/value data store and a document data store. Further, you will improve your existing API to make it a fully fledged, secure RESTful service.