Spring MVC POST Method Example
/rest/user
with GET - returns the List of User from the H2 Database via Spring JPA/rest/user
with POST - creates the User in the H2 Database and returns the list of all Users from the Database
Sample
POST Sample:
{ "name": "Peter", "dept": "Technology", "salary": 12000 }