Sakura Boot — hypermedia

Simplify the API consumption by following rest conventions.

The hypermedia module helps to create hypermedia links for the rest API.

Convention over code

For all the classes inherited from the hypermedia module class or interface, only a few lines of code are required. All the defaults are defined in the module class itself.

For example, to add hypermedia links to a basic controller class, it is only necessary to implement the Hypermedia interface. And provide a ModelAssembler. Two other simple classes are needed, the ModelAssembler and the Model class.

Lombok can be used to help reduce the boilerplate code and remove a lot of necessary code but needs to be used carefully, see Lombok

It is possible to add custom logic or modify the default behavior if necessary.

Getting started

For new users of the framework the Quickstart page will help create a simple application using the hypermedia module.

For more details on the installation instructions, see Installation.

To see all the different modules, go to Modules.