I am using Spring data rest and I want to add some additional functionality to my repository.
@RestResource(exported = true)
public class ItemRepository extends JpaRepository<Item, Long> {
@Query("update ...")
void modifyItem();
}
The modifyItem()
method can only be accessed through a GET request at /items/find/modifyItem
How can I change the requestmethod to UPDATE?
How can I remove the "find" from the URI?