Slide 25
Slide 25 text
@VladimirD_42
#VoxxedMicroservices
REST in Real Life
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
@RepositoryRestResource(collectionResourceRel = "people",
path = "people")
public interface PersonRepository
extends MongoRepository {
List findByLastName(@Param("name") String name);
}