@RequestMapping(method = RequestMethod.POST)
    @ResponseStatus(HttpStatus.CREATED)
    @ResponseBody
    public EntryDTO createNotification(HttpServletRequest req, HttpServletResponse response, @RequestBody EntryDTO entry) {
    """
	Create a notification.
	
	@param req the Http request
	@param response the Http response
	@param entry The Entry
	@return The persisted entry
    """
        EntryDTO persisted = restService.createNotification(entry);

        String url = getSingleNotificationRESTUrl(req, persisted.getId());
        response.addHeader("Location", url);

        return persisted;
    }
@RequestMapping(method = RequestMethod.POST)
    @ResponseStatus(HttpStatus.CREATED)
    @ResponseBody
    public EntryDTO createNotification(HttpServletRequest req, HttpServletResponse response, @RequestBody EntryDTO entry) {
        EntryDTO persisted = restService.createNotification(entry);

        String url = getSingleNotificationRESTUrl(req, persisted.getId());
        response.addHeader("Location", url);

        return persisted;
    }
@ RequestMapping ( method = RequestMethod . POST ) @ ResponseStatus ( HttpStatus . CREATED ) @ ResponseBody public EntryDTO createNotification ( HttpServletRequest req , HttpServletResponse response , @ RequestBody EntryDTO entry ) { EntryDTO persisted = restService . createNotification ( entry ) ; String url = getSingleNotificationRESTUrl ( req , persisted . getId ( ) ) ; response . addHeader ( "Location" , url ) ; return persisted ; }
Create a notification.

@param req the Http request
@param response the Http response
@param entry The Entry
@return The persisted entry
Create a notification .