Delete the Resource from REST API

 Delete Resource from REST API

public void deleteById(int id) {

Predicate<? super User> predicate = user -> user.getId().equals(id);

users.removeIf(predicate);

}

Comments

Popular posts from this blog

Introduction of RESTful Web Service

Learn JPA and Hibernate

Implementing Dynamic Filtering for Rest API