Created Greeting controller to redirect the GET/ request to show the index.html
3.Created user class and usermodel class to hold the information about the users.
usermodel has been hardcoded with data as a list .
Created user RestController to handle the requests GET /{name}/birthday, GET /{name}/age, POST /user, PUT /user/{name}.
Controllers have been annotated as RestControllers
Response entity has been returned for POST /user and PUT /user/{name} requests.
Part 2:
User class has been annotated as Entity to set it up as JPA entity.
Added the required dependencies in pom.xml.
Created userrepository class with @Repository annotation to make all the CRUD actions available for the usermodel.
used the inbuilt methods like save() and findbyName() to save the user to repo and to get user from repo.
Part 3:
Edited the HTML page to interact with rest of the APIs.
Included the scripts for JS , JQUERY and CSS in the html file.
Created an app.js file and used JQUERY to handle the post and get requests.
Used thymeleaf template to populate the user information dynamically in a pre written template.