Michael Branders
04/08/2022, 8:40 AM@Getter
@ToString
@Builder(toBuilder = true)
@Jacksonized
@JsonIgnoreProperties(ignoreUnknown = true)
public class ObjectDto {
private final String id;
private final Map<Locale, String> descriptions;
}
I need to get that map in DSL
private DslPart objectDtoContract() {
return newJsonBody((o)->{
o.stringMatcher("id", REGEX_ID, OBJECT_ID);
o.array("description",(map)->{
????
});
}).build();
}
Dont realy find any examples on how to get a map in a DslPartMichael Branders
04/08/2022, 9:22 AM@GetMapping(value = "/documents/{id}")
Optional<Resource> fetchDocument(@PathVariable(value = "id", required = true) String documentId);
How do i define a Resource. I have a client that gets a document by id and get a recource as response.uglyog
Boris
04/11/2022, 3:45 AMMichael Branders
04/11/2022, 6:26 AMBoris
04/11/2022, 8:40 AMBoris
04/11/2022, 8:40 AM