notification-portlet-webapp/src/main/java/org/jasig/portlet/notice/controller/rest/JPANotificationRESTController.java
@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;
    }
@ 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 .