Book Image

RESTful Web API Design with Node.js

By : Valentin Bojinov
Book Image

RESTful Web API Design with Node.js

By: Valentin Bojinov

Overview of this book

<p>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.</p> <p>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.</p>
Table of Contents (13 chapters)
RESTful Web API Design with Node.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


Congratulations! In this chapter, you succeeded in transforming a sample REST-enabled endpoint into a full-fledged RESTful web service that supports usability filtering and paging. The service delivers both arbitrary and JSON data, and it is ready for high-load scenarios, as it enables caching in its critical parts. One thing that should draw your attention is the appropriate usage of the HTTP status codes when it comes to redirection between new and obsolete versions of any public API.

Implementing appropriate HTTP status is really important for the REST application, so we made use of rather exotic statuses such as "301 Moved Permanently" and "302 Found." In the next chapter, we will introduce the concept of authorization into our application.