다음 요청을 처리할 수 있는 핸들러 메소드를 만들어 보세요.
@GetMapping("/events")
public String events() // ...
@GetMapping("/events/{id}")
public String getEvents(@PathVariable String int id) // ...
@PostMapping(
value = "/event"
consumes = MediaType.APPLICATION_JSON_VALUE,
produces = MediaType.APPLICATION_JSON_VALUE)
public String createEvent() // ...
@DeleteMapping("/events/{id}")
public String removeEvent(@Pathvariable int id) // ...
@PutMapping(
value = "/event/{id}"
consumes = MediaType.APPLICATION_JSON_VALUE,
produces = MediaType.APPLICATION_JSON_VALUE)
public String updateEvent(@Pathvariable int id) // ...