포스트맨사용할때 생각보다 헷갈렸다 그래서 넣어둔다.
@PostMapping이 아래와 같을때
@PostMapping("/api/post")
@GetMapping이 아래와 같을때
@GetMapping("/api/post")
@GetMapping이 아래와 같을때
@GetMapping("/api/post/{id}")
{id}부분에 찾을 id를 적어준다
서버나 컨트롤에 다른 키를 이용해 찾을거라면 id부분을 바꿔주면된다.
id&key와 같은 형태도 있다. 맞나?
@PutMapping이 아래와 같을때
@PutMapping("/api/post/{id}")
@DeleteMapping이 아래와 같을때
@DeleteMapping("/api/post/{id}")