File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
backend/spring-boot/src/main/java/org/bugzkit/api Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public UserController(UserService userService) {
3030
3131 @ PatchMapping ("/{id}" )
3232 public ResponseEntity <UserDTO > patch (
33- @ PathVariable ( "id" ) Long id , @ Valid @ RequestBody PatchUserRequest patchUserRequest ) {
33+ @ PathVariable Long id , @ Valid @ RequestBody PatchUserRequest patchUserRequest ) {
3434 return ResponseEntity .ok (userService .patch (id , patchUserRequest ));
3535 }
3636}
Original file line number Diff line number Diff line change @@ -32,17 +32,17 @@ public ResponseEntity<PageableDTO<T>> findAll(Pageable pageable) {
3232 }
3333
3434 @ GetMapping ("/{id}" )
35- public ResponseEntity <T > findById (@ PathVariable ( "id" ) Long id ) {
35+ public ResponseEntity <T > findById (@ PathVariable Long id ) {
3636 return ResponseEntity .ok (service .findById (id ));
3737 }
3838
3939 @ PutMapping ("/{id}" )
40- public ResponseEntity <T > update (@ PathVariable ( "id" ) Long id , @ Valid @ RequestBody U saveRequest ) {
40+ public ResponseEntity <T > update (@ PathVariable Long id , @ Valid @ RequestBody U saveRequest ) {
4141 return ResponseEntity .ok (service .update (id , saveRequest ));
4242 }
4343
4444 @ DeleteMapping ("/{id}" )
45- public ResponseEntity <Void > delete (@ PathVariable ( "id" ) Long id ) {
45+ public ResponseEntity <Void > delete (@ PathVariable Long id ) {
4646 service .delete (id );
4747 return ResponseEntity .noContent ().build ();
4848 }
Original file line number Diff line number Diff line change @@ -35,12 +35,12 @@ public ResponseEntity<PageableDTO<UserDTO>> findAll(Pageable pageable) {
3535 }
3636
3737 @ GetMapping ("/{id}" )
38- public ResponseEntity <UserDTO > findById (@ PathVariable ( "id" ) Long id ) {
38+ public ResponseEntity <UserDTO > findById (@ PathVariable Long id ) {
3939 return ResponseEntity .ok (userService .findById (id ));
4040 }
4141
4242 @ GetMapping ("/username/{username}" )
43- public ResponseEntity <UserDTO > findByUsername (@ PathVariable ( "username" ) String username ) {
43+ public ResponseEntity <UserDTO > findByUsername (@ PathVariable String username ) {
4444 return ResponseEntity .ok (userService .findByUsername (username ));
4545 }
4646
You can’t perform that action at this time.
0 commit comments