@@ -79,16 +79,58 @@ public ResponseEntity<GetEmployeeResponseDto> getUserByIdApi(@PathVariable("id")
7979 }
8080
8181 @ Operation (
82- summary = "Get Employee API with company email id" ,
83- description = "this API get a Employee record by id"
82+ summary = "Get Employee details from company email id" ,
83+ description = "this API get a Employee record by company email id"
8484 )
8585 @ ApiResponse (
8686 responseCode = "200" ,
87- description = "200-success, display the Employee record created "
87+ description = "200-success, display the Employee record"
8888 )
8989 @ GetMapping (GET_EMPLOYEE +"/companyEmail/{email}" )
9090 public ResponseEntity <GetEmployeeResponseDto > getUserByCompanyEmailIdApi (@ PathVariable ("email" ) String companyEmailId ){
9191 GetEmployeeResponseDto getEmployeeResponseDto = employeeServiceImpl .getEmployeeByCompanyEmailId (companyEmailId );
9292 return new ResponseEntity <>(getEmployeeResponseDto , HttpStatus .OK );
9393 }
94+
95+ @ Operation (
96+ summary = "Get Employee from a specific department name" ,
97+ description = "this API get a Employee record by from a specific department"
98+ )
99+ @ ApiResponse (
100+ responseCode = "200" ,
101+ description = "200-success, display Employee from a specific department name"
102+ )
103+ @ GetMapping (GET_EMPLOYEE +"/departmentName/{departmentName}" )
104+ public ResponseEntity <List <GetEmployeeResponseDto >> getUserByDepartmentNameApi (@ PathVariable ("departmentName" ) String departmentName ){
105+ List <GetEmployeeResponseDto > getEmployeeResponseDto = employeeServiceImpl .getEmployeeByDepartment (departmentName );
106+ return new ResponseEntity <>(getEmployeeResponseDto , HttpStatus .OK );
107+ }
108+
109+ @ Operation (
110+ summary = "Get Employee from a specific businessUnit name" ,
111+ description = "this API get a Employee record by from a specific businessUnit"
112+ )
113+ @ ApiResponse (
114+ responseCode = "200" ,
115+ description = "200-success, display Employee from a specific businessUnit name"
116+ )
117+ @ GetMapping (GET_EMPLOYEE +"/businessUnit/{businessUnit}" )
118+ public ResponseEntity <List <GetEmployeeResponseDto >> getUserByBusinessUnitApi (@ PathVariable ("businessUnit" ) String departmentName ){
119+ List <GetEmployeeResponseDto > getEmployeeResponseDto = employeeServiceImpl .getEmployeeByBusinessUnit (departmentName );
120+ return new ResponseEntity <>(getEmployeeResponseDto , HttpStatus .OK );
121+ }
122+
123+ @ Operation (
124+ summary = "Get Employee from a specific band name" ,
125+ description = "this API get a Employee record by from a specific band"
126+ )
127+ @ ApiResponse (
128+ responseCode = "200" ,
129+ description = "200-success, display Employee from a specific band name"
130+ )
131+ @ GetMapping (GET_EMPLOYEE +"/band/{businessUnit}" )
132+ public ResponseEntity <List <GetEmployeeResponseDto >> getUserByBandApi (@ PathVariable ("businessUnit" ) String departmentName ){
133+ List <GetEmployeeResponseDto > getEmployeeResponseDto = employeeServiceImpl .getEmployeeByBand (departmentName );
134+ return new ResponseEntity <>(getEmployeeResponseDto , HttpStatus .OK );
135+ }
94136}
0 commit comments