code: @PUT
      @Consumes("application/json")
      public void putJson(IncomingMessage msg) {
          chatBean.addMessage(msg.nick, msg.content);
      }
docs: PUT method for updating or creating an instance of ChatService
  
  @param content representation for the resource
  @return an HTTP response with content of the updated or created resource.