How to HATEOAS when API returns Long?

20 Views Asked by At

I would like to use HATEOAS in a Spring-boot @RestController; the method looks like

@GetMapping("/{transactionId}")
public UUID search(@PathVariable String transactionId){
    ...
    return o.getUID();
}

How can I inject the "_links" structure?

0

There are 0 best solutions below