From c88c53839ffec8361613390e1fc76b25141fa3cd Mon Sep 17 00:00:00 2001 From: krzysztofwedrowicz Date: Thu, 26 Sep 2019 14:12:45 +0200 Subject: [PATCH] removed additional hateoas wrapper to achieve consistency in endpoint's returns structure --- .../lending/patronprofile/web/PatronProfileController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/pillopl/library/lending/patronprofile/web/PatronProfileController.java b/src/main/java/io/pillopl/library/lending/patronprofile/web/PatronProfileController.java index d3e2f94..438ed22 100644 --- a/src/main/java/io/pillopl/library/lending/patronprofile/web/PatronProfileController.java +++ b/src/main/java/io/pillopl/library/lending/patronprofile/web/PatronProfileController.java @@ -53,8 +53,8 @@ class PatronProfileController { private final CancelingHold cancelingHold; @GetMapping("/profiles/{patronId}") - ResponseEntity> patronProfile(@PathVariable UUID patronId) { - return ok(new EntityModel<>(new ProfileResource(patronId))); + ResponseEntity patronProfile(@PathVariable UUID patronId) { + return ok(new ProfileResource(patronId)); } @GetMapping("/profiles/{patronId}/holds/")