August 2018
Intermediate to advanced
260 pages
5h 48m
English
In this recipe, we'll create a wrapper class to represent collections of resources with pagination information. We'll also use the JsonRootName annotation from the jackson library to make single-resource representations consistent. The following code should be added to the message service, which was introduced in a previous recipe:
package com.packtpub.microservices.ch04.message.models;import com.fasterxml.jackson.annotation.JsonProperty;import com.fasterxml.jackson.annotation.JsonRootName;import java.util.List;@JsonRootName("result") ...Read now
Unlock full access