Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question - You are required to create a Employee Management Rest Api based Web application, where you will be developing CRUD ( Create , Read,Update
Question
You are required to create a Employee Management Rest Api based Web application, where you will be developing CRUDCreateRead,Update and Delete functionality along with Sorting and some concepts of security.
Your Rest Api should be secureAnd should have different endpoints for different operations
Your application should be able to add roles in the database dynamically in the db
Ex
"name":"USER"
Where name specifies a role which can be assigned to a user that will be used for authentication purposes while interacting with the api.
Your application should be able to add Users in the db which can be used for authentication purposes.
Ex
"username":"temp",
"password":"
"roles":
id:
"name":"USER"
Now Your application should be able to add employees data in the db if and only if the authenticated user is ADMIN
Ex
"firstName":"gl
"lastName":"postman",
"email":"postman@gamil.com"
Your application should provide an endpoint to list all the employees stored in the database.
Ex
Response Body
id:
"firstName": "Ujjawal",
"lastName": "Sharma",
"email": fdfdfd@gmail.com"
id:
"firstName": "temp",
"lastName": "kaushik",
"email": jdfdkfdjj@gmail.com"
id:
"firstName": "postman",
"lastName": "postman",
"email": "postman@gamil.com"
Your application should provide endpoint to fetch or get an employee record specifically based on the id of that employee
Ex Url http:localhost:apiemployees
Response Body
id:
"firstName": "postman",
"lastName": "postman",
"email": "postman@gamil.com"
Your application should provide an endpoint to update an existing employee record with the given updated json object.
Ex
Object to be updatedrawJson
id:
"firstName":"postman",
"lastName":"postman",
"email":"postman@gamil.com"
Response Body after updation
id:
"firstName": "postman",
"lastName": "postman",
"email": "postman@gamil.com"
Your application should also provide an endpoint to delete an existing employee record based on the id of the employee
Ex
Url http:localhost:apiemployees
Response Body
"Deleted employee id
Your application should provide an endpoint to fetch an employee by hisher first name and if found more than one record then list them all
Ex
Url http:localhost:apiemployeessearchgl
Response Body
id:
"firstName": gl
"lastName": "postman",
"email": "postman@gamil.com"
Your application should be able to list all employee records sorted on their first name in either ascending order or descending order
Ex
Url http:localhost:apiemployeessortorderasc
OR
Url http:localhost:apiemployeessortorderdesc
Important instructions
i You should use the MySQL for the whole project along with Spring JPA and Spring Security.
ii Provide Screenshots of the operationsPostManBrowser along with code submission. note Screenshots will one of the criterias while grading
iii You can also record your screen while demonstrating CRUD operation, upload on the drive and share the drive link along with code.
iv Spring Boot Application must follow the standard project structure
v Code should follow naming conventions along with proper indentations. vi You are free to choose any Rest client to interact with api while implementation.Prefer PostMan
Please follow all the instructions properly and I want complete code with CRUD and sorting with dao authentications.please go through the steps.add role dynamically in db as mention in step and follow other steps.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started