File tree 1 file changed +1
-4
lines changed
src/main/java/com/serve/api/controler
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 13
13
import org .springframework .web .bind .annotation .PutMapping ;
14
14
import org .springframework .web .bind .annotation .RequestBody ;
15
15
import org .springframework .web .bind .annotation .RequestMapping ;
16
- import org .springframework .web .bind .annotation .RequestParam ;
17
16
import org .springframework .web .bind .annotation .ResponseStatus ;
18
17
import org .springframework .web .bind .annotation .RestController ;
19
18
22
21
import static com .serve .api .controler .endpoints .Endpoints .COMPANY ;
23
22
import static com .serve .api .controler .endpoints .Endpoints .ID ;
24
23
25
- // TODO: 13.08.22 змінити оновленння дескріпшін через боді
26
-
27
24
@ RestController
28
25
@ AllArgsConstructor
29
26
@ RequestMapping (COMPANY )
@@ -50,7 +47,7 @@ public void create(@RequestBody CompanyDto company) {
50
47
51
48
@ PutMapping (ID )
52
49
@ ResponseStatus (code = HttpStatus .ACCEPTED )
53
- public void update (@ PathVariable Long id , @ RequestParam String description ) {
50
+ public void update (@ PathVariable Long id , @ RequestBody String description ) {
54
51
service .update (id , description );
55
52
}
56
53
You can’t perform that action at this time.
0 commit comments