Turning DTOs into Spring HATEOAS resources

This recipe presents how to create Spring HATEOAS resources. Even if the emphasis here is on one specific resource—IndexResource (in place of the former IndexOverviewDTO), feel free to browse cloudstreetmarket-api and cloudstreetmarket-core to discover more changes.

The HATEOAS principle has been applied at this stage to all the resources that make the core of our business, which strongly reflects the financial data structure of Yahoo! (indices, quotes, products, historical data, graphs, and so on).

How to do it…

  1. From the Git Perspective in Eclipse, checkout the latest version of the v6.x.x branch. Then, run a maven clean install command on the cloudstreetmarket-parent module (right-click on the Maven Clean ...

Get Spring MVC: Designing Real-World Web Applications now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.