From cb03c555815c091c7ffca0be0059fa61cc67122d Mon Sep 17 00:00:00 2001 From: basilisk487 Date: Thu, 29 Aug 2019 16:51:56 -0500 Subject: [PATCH] MONIT-15724: Correct proxy endpoint for V5 --- .../src/main/java/com/wavefront/api/ProxyV2API.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/java-lib/src/main/java/com/wavefront/api/ProxyV2API.java b/java-lib/src/main/java/com/wavefront/api/ProxyV2API.java index b0f121417..38a9bad25 100644 --- a/java-lib/src/main/java/com/wavefront/api/ProxyV2API.java +++ b/java-lib/src/main/java/com/wavefront/api/ProxyV2API.java @@ -20,7 +20,7 @@ * * @author vasily@wavefront.com */ -@Path("/v2/") +@Path("/") public interface ProxyV2API { /** @@ -36,7 +36,7 @@ public interface ProxyV2API { * @return Proxy configuration. */ @POST - @Path("proxy/checkin") + @Path("v2/wfproxy/checkin") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) AgentConfiguration proxyCheckin(@HeaderParam("X-WF-PROXY-ID") final UUID proxyId, @@ -56,7 +56,7 @@ AgentConfiguration proxyCheckin(@HeaderParam("X-WF-PROXY-ID") final UUID proxyId */ @POST @Consumes(MediaType.TEXT_PLAIN) - @Path("proxy/report") + @Path("v2/wfproxy/report") Response proxyReport(@HeaderParam("X-WF-PROXY-ID") final UUID proxyId, @QueryParam("format") final String format, final String pushData); @@ -67,7 +67,7 @@ Response proxyReport(@HeaderParam("X-WF-PROXY-ID") final UUID proxyId, * @param proxyId ID of the proxy. */ @POST - @Path("proxy/config/processed") + @Path("v2/wfproxy/config/processed") void proxyConfigProcessed(@HeaderParam("X-WF-PROXY-ID") final UUID proxyId); /** @@ -77,7 +77,7 @@ Response proxyReport(@HeaderParam("X-WF-PROXY-ID") final UUID proxyId, * @param details Details of the error. */ @POST - @Path("proxy/error") + @Path("v2/wfproxy/error") void proxyError(@HeaderParam("X-WF-PROXY-ID") final UUID proxyId, @FormParam("details") String details); }