Browse Source

Expose book ID query for Rest API resource

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.2-alpha
Pekka Helenius 4 years ago
parent
commit
e544d7bfd3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bookstore/src/main/java/com/fjordtek/bookstore/model/BookRepository.java

+ 1
- 1
bookstore/src/main/java/com/fjordtek/bookstore/model/BookRepository.java View File

@ -18,7 +18,7 @@ import org.springframework.data.rest.core.annotation.RestResource;
public interface BookRepository extends CrudRepository<Book, Long> { public interface BookRepository extends CrudRepository<Book, Long> {
@Override @Override
@RestResource(exported = false)
//@RestResource(exported = false)
public Optional<Book> findById(Long id); public Optional<Book> findById(Long id);
@RestResource(path = "title", rel = "title") @RestResource(path = "title", rel = "title")


Loading…
Cancel
Save