다음 요청을 처리할 수 있는 핸들러 메소드를 만들어 보세요.

  1. GET /events
  2. GET /events/1 GET /events/2 GET /events/3
  3. POST /event CONTENT-TYPE: application/json ACCEPT: application/json
  4. DELETE /event1 DELETE /event2 DELETE /event3
  5. PUT /event/1 CONTENT-TYPE: application/json ACCEPT: application/json
@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) // ...