From 67aa1c1f0c444bce2958bf5c53ae8f5d89838d5b Mon Sep 17 00:00:00 2001 From: alberto Date: Thu, 26 Mar 2020 12:51:43 +0000 Subject: [PATCH] =?UTF-8?q?Movendo=20o=20WS=20de=20modifica=C3=A7=C3=A3o?= =?UTF-8?q?=20de=20Pricing=20V2=20para=20a=20API=20bug#18775=20dev:=20trev?= =?UTF-8?q?ezani=20qua:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@100941 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../rest/pricing/AlteraPricingRS.java | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/java/com/rjconsultores/ventaboletos/rest/pricing/AlteraPricingRS.java b/src/java/com/rjconsultores/ventaboletos/rest/pricing/AlteraPricingRS.java index 125f0f4d5..098844dc9 100644 --- a/src/java/com/rjconsultores/ventaboletos/rest/pricing/AlteraPricingRS.java +++ b/src/java/com/rjconsultores/ventaboletos/rest/pricing/AlteraPricingRS.java @@ -24,15 +24,16 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; import com.rjconsultores.ventaboletos.vo.pricing.Pricing; import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext; -@Path("pricing") +//@Path("pricing") +// FIXME: Este EndPoint foi movido para a RJ API public class AlteraPricingRS { private static Logger log = org.slf4j.LoggerFactory.getLogger(AlteraPricingRS.class); - @POST - @Consumes({ MediaType.APPLICATION_JSON }) - @Produces({ MediaType.APPLICATION_JSON }) - @Path("recuperarPricing") +// @POST +// @Consumes({ MediaType.APPLICATION_JSON }) +// @Produces({ MediaType.APPLICATION_JSON }) +// @Path("recuperarPricing") public Response recuperarPricing(ParamsAlterarPricing params) { PricingRetorno pricingRetorno = new PricingRetorno(); try { @@ -60,10 +61,10 @@ public class AlteraPricingRS { } } - @POST - @Consumes({ MediaType.APPLICATION_JSON }) - @Produces({ MediaType.APPLICATION_JSON }) - @Path("alterarPricing") +// @POST +// @Consumes({ MediaType.APPLICATION_JSON }) +// @Produces({ MediaType.APPLICATION_JSON }) +// @Path("alterarPricing") public Response alterarPricing(ParamsAlterarPricing params) { String retorno = "Tipo Operação não identificada"; AlteraPricingService service = (AlteraPricingService) AppContext.getApplicationContext().getBean("alteraPricingService"); @@ -89,10 +90,10 @@ public class AlteraPricingRS { return Response.ok(retorno, MediaType.APPLICATION_JSON + Constantes.CHARSET_UTF8).build(); } - @POST - @Consumes({ MediaType.APPLICATION_JSON }) - @Produces({ MediaType.APPLICATION_JSON }) - @Path("excluirPricingDiasFimViagem") +// @POST +// @Consumes({ MediaType.APPLICATION_JSON }) +// @Produces({ MediaType.APPLICATION_JSON }) +// @Path("excluirPricingDiasFimViagem") public Response excluirPricingDiasFimViagem(ParamsAlterarPricing params) { String retorno = "Dias Fim Viagem informado é inválido."; if(isUsuarioValido()) {