diff --git a/open-metadata-implementation/view-services/asset-catalog/asset-catalog-spring/src/main/java/org/odpi/openmetadata/viewservices/assetcatalog/server/spring/AssetCatalogResource.java b/open-metadata-implementation/view-services/asset-catalog/asset-catalog-spring/src/main/java/org/odpi/openmetadata/viewservices/assetcatalog/server/spring/AssetCatalogResource.java index cc933e99612..4bef75d13dd 100644 --- a/open-metadata-implementation/view-services/asset-catalog/asset-catalog-spring/src/main/java/org/odpi/openmetadata/viewservices/assetcatalog/server/spring/AssetCatalogResource.java +++ b/open-metadata-implementation/view-services/asset-catalog/asset-catalog-spring/src/main/java/org/odpi/openmetadata/viewservices/assetcatalog/server/spring/AssetCatalogResource.java @@ -9,6 +9,7 @@ import org.odpi.openmetadata.accessservices.assetconsumer.rest.AssetSearchMatchesListResponse; import org.odpi.openmetadata.commonservices.ffdc.rest.FilterRequestBody; import org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.AssetsResponse; +import org.odpi.openmetadata.viewservices.assetcatalog.rest.AssetCatalogSupportedTypes; import org.odpi.openmetadata.viewservices.assetcatalog.server.AssetCatalogRESTServices; import org.springframework.web.bind.annotation.*; @@ -38,6 +39,28 @@ public AssetCatalogResource() } + /** + * Return the subtypes for asset. + * + * @param serverName name of the server to route the request to + * @return the supported types from Asset Consumer OMAS or + * PropertyServerException if a configuration on the backend + * InvalidParameterException if parameter validation fails + * UserNotAuthorizedException security access problem + */ + @GetMapping( path = "/assets/types") + + @Operation(summary="getAssetTypes", + description="Return the subtypes for asset.", + externalDocs=@ExternalDocumentation(description="Assets", + url="https://egeria-project.org/concepts/asset/")) + + public AssetCatalogSupportedTypes getAssetTypes(@PathVariable String serverName) + { + return restAPI.getSupportedTypes(serverName); + } + + /** * Return all the elements that are anchored to an asset plus relationships between these elements and to other elements. *