Page History
...
The base class in this package uses reflection to identify attributes that are actual links to other REST resources. On a such
Once such an attribute is discovered the code
...
- wrap the linked REST resource inside a DSpaceResource (so to have the identifier, self link, and links to other resources). The wrapper is actually created by the Repository responsible of the specific resource (ItemRepository, BitstreamRepository, etc.)
- https://github.com/DSpace/DSpace/blob/rest7/dspace-spring-rest/src/main/java/org/dspace/app/rest/model/hateoas/DSpaceResource.java#L58
This give a chance to add custom logic for extra links in specific resource
- https://github.com/DSpace/DSpace/blob/rest7/dspace-spring-rest/src/main/java/org/dspace/app/rest/model/hateoas/DSpaceResource.java#L58
- put the wrapper in the embedded section
- clean the attribute (not sure if useful/required/right):
...
Converter Object: org.dspace.app.rest.converter.DSpaceObjectConverter
...
Overview
Content Tools