Spring Boot Project
Spring Boot Project
Create a dao layer which will perform all the repository related operations
Add exception models
Topics
Databases
Day 0
Day 1
Day 1
Day 2
Day 3
Day 4
Day 5
Study Material
https://www.guru99.com/how-to-create-a-database.html#2
https://www.mysqltutorial.org/mysql-create-database/
https://www.w3schools.com/sql/sql_create_db.asp
https://spring.io/guides/gs/rest-service/
https://dzone.com/articles/build-rest-web-service-using-spring
https://spring.io/guides/tutorials/rest/
Comments
Details
1. Insert an user with user attributes like,
userId(primaryKey), userNumber,
userName, address, mobNo, etc.
Initially the list of accounts will be
empty, no account will be assigned. It's
simply an user creation
1. Insert an account with account
attributes like, accountId, accountName,
accountBranch, etc.
Initially the user will not be assigned
1. User details can be updated such as
userName, address, mobNo, etc.
(same with account entity)
1. Assign the account to an user (accept
userNumber as queryParam and
accountNumber in requestBody)
1. Delete user or account( accept
userNumber or accountNumber in path
param)
Operational Constraints Exception Handling
1. One user can have multiple 1. All exceptions should be properly
accounts handled.
2. User id should be auto 2. Standard HTTP status codes should be
generated/incrmented in range followed.
(10000- 99999) https://en.wikipedia.org/wiki/
3. User id should be created when List_of_HTTP_status_codes
insertin in backend
200 OK -- API success
201 Created -- for create/Add APIs
204 - if Data not found
500 Internal Server Error - if any
exception with proper mssage
{ {
data :{ response object as per req}, data :{ response object as per req},
success: true, success: false,
message: "Message String" message: " Error message String"
} }
How to add this plugin to your IDE and how to solve sonar issues