E.g. a Function<Long, Foo> can be used to fetch a single entity of type Foo with a long ID., via /{function}/{id}