Skip to content

Commit

Permalink
Merge pull request #8232 from mandy-chessell/oak2024
Browse files Browse the repository at this point in the history
Reinstate getSupportedAssetTypes
  • Loading branch information
mandy-chessell authored Jun 12, 2024
2 parents 11fa693 + 3f846ac commit 34b2669
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;

Expand Down Expand Up @@ -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.
*
Expand Down

0 comments on commit 34b2669

Please sign in to comment.