From d1bc19fbf243e37bb1dccfff1dae2e8de3a85146 Mon Sep 17 00:00:00 2001 From: IceS2 Date: Thu, 5 Sep 2024 11:04:50 +0200 Subject: [PATCH] Fixes some things on the APICollection (#17704) --- .../service/jdbi3/APICollectionRepository.java | 4 ++-- .../resources/apis/APICollectionResource.java | 15 ++++++++------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/APICollectionRepository.java b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/APICollectionRepository.java index 2f85db54b27..538c5b8c114 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/APICollectionRepository.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/APICollectionRepository.java @@ -23,7 +23,7 @@ import org.openmetadata.schema.type.EntityReference; import org.openmetadata.schema.type.Include; import org.openmetadata.schema.type.Relationship; import org.openmetadata.service.Entity; -import org.openmetadata.service.resources.databases.DatabaseResource; +import org.openmetadata.service.resources.apis.APICollectionResource; import org.openmetadata.service.util.EntityUtil.Fields; import org.openmetadata.service.util.FullyQualifiedName; @@ -32,7 +32,7 @@ public class APICollectionRepository extends EntityRepository { public APICollectionRepository() { super( - DatabaseResource.COLLECTION_PATH, + APICollectionResource.COLLECTION_PATH, Entity.API_COLLCECTION, APICollection.class, Entity.getCollectionDAO().apiCollectionDAO(), diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/resources/apis/APICollectionResource.java b/openmetadata-service/src/main/java/org/openmetadata/service/resources/apis/APICollectionResource.java index b45180c6df5..0f2581f1b0c 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/resources/apis/APICollectionResource.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/resources/apis/APICollectionResource.java @@ -50,7 +50,6 @@ import org.openmetadata.schema.api.VoteRequest; import org.openmetadata.schema.api.data.CreateAPICollection; import org.openmetadata.schema.api.data.RestoreEntity; import org.openmetadata.schema.entity.data.APICollection; -import org.openmetadata.schema.entity.data.Database; import org.openmetadata.schema.type.ChangeEvent; import org.openmetadata.schema.type.EntityHistory; import org.openmetadata.schema.type.Include; @@ -268,7 +267,7 @@ public class APICollectionResource extends EntityResource