From 1943d512ccf6540d8e4770a547da3958e6d1a007 Mon Sep 17 00:00:00 2001 From: Venkata Harish K Kajur Date: Tue, 27 Feb 2018 09:38:58 -0500 Subject: Update the rest endpoints for v13 version Issue-ID: AAI-536 Change-Id: If48d6875a84f919f0cf67a036f4217124cc5a1ea Signed-off-by: Venkata Harish K Kajur --- aai-resources/src/main/java/org/onap/aai/rest/ExampleConsumer.java | 2 +- aai-resources/src/main/java/org/onap/aai/rest/LegacyMoxyConsumer.java | 2 +- .../src/main/java/org/onap/aai/rest/URLFromVertexIdConsumer.java | 2 +- aai-resources/src/main/java/org/onap/aai/rest/VertexIdConsumer.java | 2 +- aai-resources/src/main/resources/docker/Dockerfile | 1 - 5 files changed, 4 insertions(+), 5 deletions(-) (limited to 'aai-resources/src/main') diff --git a/aai-resources/src/main/java/org/onap/aai/rest/ExampleConsumer.java b/aai-resources/src/main/java/org/onap/aai/rest/ExampleConsumer.java index 497eeb9..40b1b96 100644 --- a/aai-resources/src/main/java/org/onap/aai/rest/ExampleConsumer.java +++ b/aai-resources/src/main/java/org/onap/aai/rest/ExampleConsumer.java @@ -47,7 +47,7 @@ import org.onap.aai.restcore.RESTAPI; /** * The Class ExampleConsumer. */ -@Path("/{version: v[789]|v1[012]}/examples") +@Path("/{version: v[789]|v1[0123]}/examples") public class ExampleConsumer extends RESTAPI { diff --git a/aai-resources/src/main/java/org/onap/aai/rest/LegacyMoxyConsumer.java b/aai-resources/src/main/java/org/onap/aai/rest/LegacyMoxyConsumer.java index 15d8296..0c2ef9c 100644 --- a/aai-resources/src/main/java/org/onap/aai/rest/LegacyMoxyConsumer.java +++ b/aai-resources/src/main/java/org/onap/aai/rest/LegacyMoxyConsumer.java @@ -77,7 +77,7 @@ import com.google.common.base.Joiner; /** * The Class LegacyMoxyConsumer. */ -@Path("{version: v[789]|v1[012]}") +@Path("{version: v[789]|v1[0123]}") public class LegacyMoxyConsumer extends RESTAPI { private static final EELFLogger LOGGER = EELFManager.getInstance().getLogger(LegacyMoxyConsumer.class.getName()); diff --git a/aai-resources/src/main/java/org/onap/aai/rest/URLFromVertexIdConsumer.java b/aai-resources/src/main/java/org/onap/aai/rest/URLFromVertexIdConsumer.java index 66677c2..df11cc6 100644 --- a/aai-resources/src/main/java/org/onap/aai/rest/URLFromVertexIdConsumer.java +++ b/aai-resources/src/main/java/org/onap/aai/rest/URLFromVertexIdConsumer.java @@ -56,7 +56,7 @@ import org.onap.aai.workarounds.LegacyURITransformer; /** * The Class URLFromVertexIdConsumer. */ -@Path("{version: v[789]|v1[012]}/generateurl") +@Path("{version: v[789]|v1[0123]}/generateurl") public class URLFromVertexIdConsumer extends RESTAPI { private ModelType introspectorFactoryType = ModelType.MOXY; private QueryStyle queryStyle = QueryStyle.TRAVERSAL; diff --git a/aai-resources/src/main/java/org/onap/aai/rest/VertexIdConsumer.java b/aai-resources/src/main/java/org/onap/aai/rest/VertexIdConsumer.java index af6022c..2117299 100644 --- a/aai-resources/src/main/java/org/onap/aai/rest/VertexIdConsumer.java +++ b/aai-resources/src/main/java/org/onap/aai/rest/VertexIdConsumer.java @@ -64,7 +64,7 @@ import org.onap.aai.serialization.engines.TransactionalGraphEngine; /** * The Class VertexIdConsumer. */ -@Path("{version: v[789]|v1[012]}/resources") +@Path("{version: v[789]|v1[0123]}/resources") public class VertexIdConsumer extends RESTAPI { private ModelType introspectorFactoryType = ModelType.MOXY; diff --git a/aai-resources/src/main/resources/docker/Dockerfile b/aai-resources/src/main/resources/docker/Dockerfile index dcbae0c..bd0e320 100644 --- a/aai-resources/src/main/resources/docker/Dockerfile +++ b/aai-resources/src/main/resources/docker/Dockerfile @@ -5,7 +5,6 @@ RUN mkdir -p /opt/aaihome/aaiadmin /opt/aai/logroot/AAI-RES /opt/app/aai-resourc # Add the proper files into the docker image from your build ADD ./opt/app/aai-resources /opt/app/aai-resources ADD ./commonLibs/ /opt/app/commonLibs/ -ADD init-chef.sh /opt/app/aai-resources/init-chef.sh ADD docker-entrypoint.sh /opt/app/aai-resources/docker-entrypoint.sh ADD aai.sh /etc/profile.d/aai.sh -- cgit 1.2.3-korg