Spring Data REST Reference Documentation

Authors

Jon Brisbin , Oliver Gierke

2.0.0.M1

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
1.1. HTTP Verb to CRUD Method Mapping
1.2. Resource Discoverability
1.2.1. Compact vs. Verbose
2. Installing Spring Data REST
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.4.1. Adding custom converters
2.5. Adding Spring Data REST to Spring MVC
3. Domain Object Representations
3.1. Links as First-Class Objects
3.1.1. Entity Relationships
3.2. Object Mapping
3.2.1. Adding custom (de)serializers to Jackson's ObjectMapper
Abstract class registration
Adding custom serializers for domain types
4. Paging and Sorting
4.1. Paging
4.1.1. Previous and Next Links
4.2. Sorting
5. Validation
5.1. Assigning Validators manually
6. Events
6.1. Writing an ApplicationListener
6.2. Writing an annotated handler
7. Using the rest-shell
7.1. Installing the rest-shell
7.2. Discovering resources
7.3. Creating new resources
7.4. Passing query parameters
7.5. Outputing results to a file
7.6. Sending complex JSON
7.7. Shelling out to bash
7.8. Setting context variables
7.9. Per-user shell initialization
7.10. SSL Certificate Validation
7.11. HTTP Basic authentication
7.12. Commands