This project shows how to use spring boot rest api and storing the responses to the database.
- For better understanding download the project and follow the steps.
- After downloading the project create a database name called api and set the database username and password in the file application.properties in the resource folder
- Run the project. This will start the project at http://localhost:8080/
- Make a post request to http://localhost:8080/api/v1 with the following params
http://localhost:8080/api/v1
params name,email and phoneNumber
- Make a get request to http://localhost:8080/api/v1/{id} with the following params
http://localhost:8080/api/v1
params id
- Make a delete request to http://localhost:8080/api/v1 with the following params
http://localhost:8080/api/v1
params id
- Make a get request to http://localhost:8080/api/v1/all .
http://localhost:8080/api/v1/all
- Make a patch request to http://localhost:8080/api/v1 with the following params
http://localhost:8080/api/v1
params id,name,email and phoneNumber