9781484208243If you need to build a RESTful API with Java, this book is the way to go. Short and sweet, it covers most of what you need without too much faff.

I particularly liked the chapter on errors. It has quite a bit of code that I copied into my project as a starting point.

When it came to testing, I liked that it acknowledged the need to do integration testing, that is, testing the API with a real database backend. I personally don’t buy the mock everything custom of the Java world as bugs can hide in the integration and these days it’s so easy and fast to test against a real database that I don’t see any value in mocking it out (if you do, the book covers that too).

It has a small section on writing clients using RestTemplate which I wish it was bigger but I understand my needs in this regard are not that common. Particularly, there was no mention on how to deal with the validation errors scheme introduced earlier when using RestTemplate.

All in all, I like this book. For me, computer books should either be short or comprehensive (not padded) and this one is a good example of a good short to-the-point book.

★★★★☆

Buy Spring REST in USA
Buy Spring REST in UK
Buy Spring REST in Canada

You may also like:

If you want to work with me or hire me? Contact me

You can follow me or connect with me:

Or get new content delivered directly to your inbox.

Join 5,047 other subscribers

I wrote a book:

Stack of copies of How to Hire and Manage Remote Teams

How to Hire and Manage Remote Teams, where I distill all the techniques I’ve been using to build and manage distributed teams for the past 10 years.

I write about:

announcement blogging book book review book reviews books building Sano Business C# Clojure ClojureScript Common Lisp database Debian Esperanto Git ham radio history idea Java Kubuntu Lisp management Non-Fiction OpenID programming Python Radio Society of Great Britain Rails rant re-frame release Ruby Ruby on Rails Sano science science fiction security self-help Star Trek technology Ubuntu web Windows WordPress

I’ve been writing for a while:

Mastodon