Project/Blog Project
-
Controller APIProject/Blog Project 2022. 9. 10. 22:56
한 눈에 알아보고 읽을 수 있어야 한다. @RestController @RequiredArgsConstructor @RequestMapping("/api/v1/members") public class MemberController { private final MemberService memberService; // create @PostMapping public ResponseEntity join(@Valid @RequestBody JoinRequestDto dto) { . . . return ResponseEntity.status(HttpStatus.CREATED).body( . . . ); // http api status 201 } // read @GetMapping("/{memberId}") pu..