@ RequestMapping ( value = "/{notificationId}" , method = RequestMethod . GET ) @ ResponseBody public EntryDTO getNotification ( HttpServletResponse response , @ PathVariable ( "notificationId" ) long id , @ RequestParam ( value = "full" , required = false , defaultValue = "false" ) boolean full ) { EntryDTO notification = restService . getNotification ( id , full ) ; if ( notification == null ) { response . setStatus ( HttpStatus . NOT_FOUND . value ( ) ) ; return null ; } return notification ; }
Get 1 notification by id .