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…
- From the Git Perspective in Eclipse, checkout the latest version of the
v6.x.xbranch. Then, run a
maven clean installcommand on the cloudstreetmarket-parent module (right-click on the Maven Clean ...