File tree Expand file tree Collapse file tree
backend/src/main/java/com/example/employeemanagement/controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ public List<Department> getAllDepartments() {
5050 })
5151 @ GetMapping ("/{id}" )
5252 public ResponseEntity <Department > getDepartmentById (
53- @ Parameter (description = "ID of the department to be retrieved" ) @ PathVariable Long id ) {
53+ @ Parameter (description = "ID of the department to be retrieved" )
54+ @ PathVariable Long id ) {
5455 Department department =
5556 departmentService
5657 .getDepartmentById (id )
@@ -89,7 +90,8 @@ public Department createDepartment(@RequestBody Department department) {
8990 })
9091 @ PutMapping ("/{id}" )
9192 public ResponseEntity <Department > updateDepartment (
92- @ Parameter (description = "ID of the department to be updated" ) @ PathVariable Long id ,
93+ @ Parameter (description = "ID of the department to be updated" )
94+ @ PathVariable Long id ,
9395 @ RequestBody Department departmentDetails ) {
9496 Department department =
9597 departmentService
You can’t perform that action at this time.
0 commit comments