I\'m trying to consume a HAL-based REST service with the RestTemplate class. The response body looks like this:
{
\"_embedded\": {
\"school:teachers\":
Definitely, you should go with Traverson
Traverson client = new Traverson(new URI("http://localhost:8080/api/"),
MediaTypes.HAL_JSON);
Resources> teachers = client
.follow("school:teachers")
.toObject(new ResourcesType>(){});
https://docs.spring.io/spring-hateoas/docs/current/reference/html/#client.traverson