Building a REST API is not a trivial task - from the high level RESTful constraints down to the the nitty-gritty of making everything work and work well.
Spring has made REST a first class citizen back with the 3.0 release and the platform has been maturing in leaps and bounds since then. With the Spring 4.0 release, REST is now battle hardened and fully mature.
With this guide, my aim is to organize the mountains of information that are available on the subject and guide you through properly building an API.
The guide starts with the basics - bootstrapping the REST API, the Spring MVC Configuration, testing the live API.
It then dives into the more advanced areas of REST - HATEOAS and pagination, Error Handling and Security (Basic and Digest Authentication).
REST API Basics
REST API Advanced Topics
Test and Consume the API
Other Spring Tutorials