DSpace 7 REST Code Walkthrough
Before DSpace 7, most DSpace code used “plain old java objects”(POJO’s) This tutorial will illustrate how to understand the flow of the DSpace 7 code.
DSpace 6 introduced Hibernate for database interactions.
Hibernate relies on Java Annotations to build associate class files database actions.
DSpace 7 relies heavily on the following non-POJO conventions
- Spring MVC Framework
- Java annotations
- Java 8 Lambdas
- Test Frameworks
Goals of this Walkthrough
- Understand how the REST Controllers are invoked
- Understand how annotations are used to interpret URL parameters and paths
- Understand how DSpace 7 implements the HAL and HATEOAS conventions
- Understand how JSON return objects are constructed
-
Understand how code exceptions are converted to HTTP return status