Java Version - 1.8
Maven build
Server port - 9191
Server address - 127.0.0.1
Database - MySQL Database
Database address - 127.0.0.1
Database port - 3306
Change the username and password for database in application.properties which is under src/main/resources according to your own database.
Run the Spring Boot app, Endpoints are
/users/address (POST)
Sample post request for this endpoint
/users/address (GET)
Returns all the users with their addresses in the Database.
(Updating user with new address information)
/users/address (PUT)
Puts the user if not already in database. If there in the database then updates the addresses and modifies it in the database.
/users/address/find/{name} (GET)
Returns user with name as {name} and their addresses from Database.