put corresponds to update
get corresponds to select
delete corresponds to delete
@RepositoryRestResource(path = "people") public interface PersonRepository extends JpaRepository<Person, Long> { @RestResource(path = "nameStartsWith", rel = "nameStartsWith") Person findByNameStartsWith(@Param("name") String name); }
RepositoryRestResource sets the corresponding path of the entity
@RestResource sets the corresponding path of the method