diff --git a/backend/src/main/java/de/hft/geotime/user/UserRepository.java b/backend/src/main/java/de/hft/geotime/user/UserRepository.java index 1da5103..9b303ba 100644 --- a/backend/src/main/java/de/hft/geotime/user/UserRepository.java +++ b/backend/src/main/java/de/hft/geotime/user/UserRepository.java @@ -1,6 +1,14 @@ package de.hft.geotime.user; -import org.springframework.data.repository.CrudRepository; +import org.springframework.data.repository.PagingAndSortingRepository; +import org.springframework.data.rest.core.annotation.RepositoryRestResource; + +import javax.websocket.server.PathParam; +import java.util.List; + +@RepositoryRestResource +public interface UserRepository extends PagingAndSortingRepository { + + List findByUsername(@PathParam("username") String username); -public interface UserRepository extends CrudRepository { }