@DELETE @Path("/delete/{id}") @Consumes({MediaType.APPLICATION_JSON}) @Produces({MediaType.APPLICATION_JSON}) public Response delete(@PathParam("id") int id) { LOGGER.info("[ init - eliminar ingreso ]"); return IngresoLogic.delete(id); }
@PUT @Path("/save") @Consumes({MediaType.APPLICATION_JSON}) @Produces({MediaType.APPLICATION_JSON}) public Response save(Ingreso obj) { LOGGER.info("[ init - guardar ingreso ]"); return IngresoLogic.save(obj); }
@PUT @Path("/update") @Consumes({MediaType.APPLICATION_JSON}) @Produces({MediaType.APPLICATION_JSON}) public Response update(Ingreso obj) { LOGGER.info("[ init - actualizar ingreso ]"); return IngresoLogic.update(obj); }
@GET @Path("/lista") @Consumes({MediaType.APPLICATION_JSON}) @Produces({MediaType.APPLICATION_JSON}) public Response listaIngresos() { LOGGER.info("[ init - listar ingresos ]"); return IngresoLogic.listaIngresos(); }