Adjust records endpoint name and rels, enable paging
This commit is contained in:
parent
0aa257dbaf
commit
0f700d87b0
@ -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<TimeRecord, Long> {
|
||||
import java.util.List;
|
||||
|
||||
@RepositoryRestResource(
|
||||
path = "records",
|
||||
itemResourceRel = "records",
|
||||
collectionResourceRel = "records"
|
||||
)
|
||||
public interface RecordRepository extends PagingAndSortingRepository<TimeRecord, Long> {
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user