/** Inserts a new {@code Contactplus}. */ @ApiMethod(name = "insert", path = "contactplus", httpMethod = ApiMethod.HttpMethod.POST) public Contactplus insert(Contactplus contactplus) { // Typically in a RESTful API a POST does not have a known ID (assuming the ID is used in the // resource path). // You should validate that contactplus.email has not been set. If the ID type is not supported // by the // Objectify ID generator, e.g. long or String, then you should generate the unique ID yourself // prior to saving. // // If your client provides the ID then you should probably use PUT instead. ofy().save().entity(contactplus).now(); logger.info("Created Contactplus with ID: " + contactplus.getEmail()); return ofy().load().entity(contactplus).now(); }