@ RequestMapping ( value = "/{notificationId}/addressees/{addresseeId}" , method = RequestMethod . GET ) @ ResponseBody public AddresseeDTO getAddressee ( HttpServletResponse resp , @ PathVariable ( "notificationId" ) long notificationId , @ PathVariable ( "addresseeId" ) long addresseeId ) { AddresseeDTO dto = restService . getAddressee ( addresseeId ) ; if ( dto == null ) { resp . setStatus ( HttpStatus . NOT_FOUND . value ( ) ) ; return null ; } return dto ; }
Get a specific addressee