@POST @Consumes(MediaType.APPLICATION_JSON) public Response putClient(ClientModel client) { AppLog.log(this.getClass(), AppLog.Level.INFO, "Inserting data for Client"); return insertModel(client, d -> d.putClient(client)); }
@GET @Produces(MediaType.APPLICATION_JSON) public String getAllClients(@Context HttpServletResponse response) { AppLog.log(this.getClass(), AppLog.Level.INFO, "Getting Client data"); return getJsonData(response, d -> d.getAllClients()); }