Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinstate getSupportedAssetTypes #8232

Merged
merged 2 commits into from
Jun 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading