Skip to content

Commit 9e79946

Browse files
committed
Update DepartmentController.java
1 parent 54577cc commit 9e79946

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

backend/src/main/java/com/example/employeemanagement/controller/DepartmentController.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)