@ PUT @ Consumes ( "application/json" ) public void putJson ( IncomingMessage msg ) { chatBean . addMessage ( msg . nick , msg . content ) ; }
PUT method for updating or creating an instance of ChatService