With the following Repository:
@RepositoryRestResource(collectionResourceRel = "people", path = "people")
public interface PeopleRepository extends PagingAndSortingRepository<People, String> {
@RestResource
List<People> findByName(@Param("name") String name);
}
URL for findByName
is automatically set to /people/search/findByName
. But it seems quite verbose, can the URL be configured to /people
and query is like /people?name=john
?