@ RequestMapping ( value = "/{notificationId}/events/{eventId}" , method = RequestMethod . GET ) @ ResponseBody public EventDTO getEvent ( HttpServletResponse response , @ PathVariable ( "notificationId" ) long notificationId , @ PathVariable ( "eventId" ) long eventId ) { EventDTO event = restService . getEvent ( eventId ) ; if ( event == null ) { response . setStatus ( HttpStatus . NOT_FOUND . value ( ) ) ; return null ; } return event ; }
Get a specific event .