Chapter 7. Developing CRUD Operations and Validations

Until now, we have seen how to build the read-only HTTP methods of an API. These methods in Spring MVC Controllers required you to master, or at least understand the presentation of a few techniques. Developing non-readonly HTTP methods raises a new set of underlying topics. Each of these topics has a direct impact on the customer experience and therefore each of them is important. We introduce the following four recipes as a frame to cover the subject:

  • Extending REST handlers to all HTTP methods
  • Validating resources using bean validation support
  • Internationalizing messages and contents for REST
  • Validating client-side forms with HTML5 and AngularJS

Introduction

Developing CRUD operations and validations ...

Get Spring MVC Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.