diff --git a/backend/src/main/java/de/hft/geotime/repositories/RecordRepository.java b/backend/src/main/java/de/hft/geotime/repositories/RecordRepository.java index b185c6f..765b6e9 100644 --- a/backend/src/main/java/de/hft/geotime/repositories/RecordRepository.java +++ b/backend/src/main/java/de/hft/geotime/repositories/RecordRepository.java @@ -2,7 +2,16 @@ package de.hft.geotime.repositories; import de.hft.geotime.entities.TimeRecord; import org.springframework.data.repository.CrudRepository; +import org.springframework.data.repository.PagingAndSortingRepository; +import org.springframework.data.rest.core.annotation.RepositoryRestResource; -public interface RecordRepository extends CrudRepository { +import java.util.List; + +@RepositoryRestResource( + path = "records", + itemResourceRel = "records", + collectionResourceRel = "records" +) +public interface RecordRepository extends PagingAndSortingRepository { }