The RESTful web service

The Spring framework offers an intuitive and easy-to-use model to expose your data, using the RESTful web service, which is the de facto standard for API communication between microservices.

The version that we will use in this section, the 2.0.5 release, automatically exposes CRUD operations as a RESTful API.

As we described in the Repository – JPA section, our FootballPlayerRepository interface extends the org.springframework.data.repository.CrudRepository, from which it inherits the following methods:

...public <S extends T> S save(S s);public <S extends T> Iterable<S> saveAll(Iterable<S> itrbl);public Optional<T> findById(ID id);public boolean existsById(ID id);public Iterable<T> findAll();public Iterable<T> 

Get Hands-On Cloud-Native Microservices with Jakarta EE now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.