From 2279b5c66e8432606f5677abc7900b81b0438fe7 Mon Sep 17 00:00:00 2001 From: "Gamboa, Gilbert" Date: Fri, 17 Jan 2020 09:18:43 -0500 Subject: Replaced annotation with RepositoryRestResource Use rest calls to update CatalogDB Issue-ID: SO-2603 Signed-off-by: Benjamin, Max (mb388a) Change-Id: I86d01259c007ed9f9fe53aeca53d126cbe066b1a --- .../onap/so/db/catalog/data/repository/NetworkResourceRepository.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mso-catalog-db/src/main') diff --git a/mso-catalog-db/src/main/java/org/onap/so/db/catalog/data/repository/NetworkResourceRepository.java b/mso-catalog-db/src/main/java/org/onap/so/db/catalog/data/repository/NetworkResourceRepository.java index eaeb4292fb..42d107c1ff 100644 --- a/mso-catalog-db/src/main/java/org/onap/so/db/catalog/data/repository/NetworkResourceRepository.java +++ b/mso-catalog-db/src/main/java/org/onap/so/db/catalog/data/repository/NetworkResourceRepository.java @@ -23,9 +23,10 @@ package org.onap.so.db.catalog.data.repository; import org.onap.so.db.catalog.beans.NetworkResource; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; +import org.springframework.data.rest.core.annotation.RepositoryRestResource; import org.springframework.stereotype.Repository; -@Repository +@RepositoryRestResource(collectionResourceRel = "networkResource", path = "networkResource") public interface NetworkResourceRepository extends JpaRepository { /** -- cgit 1.2.3-korg