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

How to User Path variable

Insert Data using Spring Command line interace (while initialize your application first time)