Adjust records endpoint name and rels, enable paging

This commit is contained in:
Marcel Schwarz 2020-05-19 10:35:14 +02:00
parent 0aa257dbaf
commit 0f700d87b0

View File

@ -2,7 +2,16 @@ package de.hft.geotime.repositories;
import de.hft.geotime.entities.TimeRecord; import de.hft.geotime.entities.TimeRecord;
import org.springframework.data.repository.CrudRepository; 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<TimeRecord, Long> { import java.util.List;
@RepositoryRestResource(
path = "records",
itemResourceRel = "records",
collectionResourceRel = "records"
)
public interface RecordRepository extends PagingAndSortingRepository<TimeRecord, Long> {
} }