From e544d7bfd3f4ee8ae062b39c761c6b407d844ae9 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Thu, 24 Sep 2020 15:49:47 +0300 Subject: [PATCH] Expose book ID query for Rest API resource Signed-off-by: Pekka Helenius --- .../main/java/com/fjordtek/bookstore/model/BookRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/BookRepository.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/BookRepository.java index 2a4ce1c..d596fc8 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/BookRepository.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/BookRepository.java @@ -18,7 +18,7 @@ import org.springframework.data.rest.core.annotation.RestResource; public interface BookRepository extends CrudRepository { @Override - @RestResource(exported = false) + //@RestResource(exported = false) public Optional findById(Long id); @RestResource(path = "title", rel = "title")