Spring Data REST Reference Documentation

Authors

Jon Brisbin , Oliver Gierke

version;

Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically.


Table of Contents

1. Introduction
2. Getting started
2.1. Introduction
2.2. Adding Spring Data REST to a Gradle project
2.3. Adding Spring Data REST to a Maven project
2.4. Configuring Spring Data REST
2.5. Starting the application
3. Repository resources
3.1. Fundamentals
3.1.1. Default status codes
3.1.2. Resource discoverability
3.2. The collection resource
3.2.1. Supported HTTP Methods
GET
POST
3.3. The item resource
3.3.1. Supported HTTP methods
GET
PUT
PATCH
DELETE
3.4. The association resource
3.4.1. Supported HTTP methods
GET
PUT
POST
DELETE
3.5. The search resource
3.5.1. Supported HTTP methods
GET
3.6. The query method resource
3.6.1. Supported HTTP methods
GET
4. Domain Object Representations
4.1. Object Mapping
4.1.1. Adding custom (de)serializers to Jackson's ObjectMapper
Abstract class registration
Adding custom serializers for domain types
5. Validation
5.1. Assigning Validators manually
6. Events
6.1. Writing an ApplicationListener
6.2. Writing an annotated handler