java.lang.Object
org.odpi.openmetadata.viewservices.assetcatalog.server.spring.AssetCatalogResource

@RestController @RequestMapping("/servers/{serverName}/api/open-metadata/asset-catalog") public class AssetCatalogResource extends Object
The AssetCatalogResource provides some of the REST API endpoints of the Asset Catalog Open Metadata View Service (OMVS).
  • Constructor Details

    • AssetCatalogResource

      public AssetCatalogResource()
      Default constructor
  • Method Details

    • getAssetTypes

      @GetMapping(path="/assets/types") public AssetCatalogSupportedTypes getAssetTypes(@PathVariable String serverName)
      Return the subtypes for asset.
      Parameters:
      serverName - name of the server to route the request to
      Returns:
      the supported types from egeria or PropertyServerException if a configuration on the backend InvalidParameterException if parameter validation fails UserNotAuthorizedException security access problem
    • getAssetGraph

      @PostMapping(path="/assets/{assetGUID}/as-graph") public OpenMetadataRootElementResponse getAssetGraph(@PathVariable String serverName, @PathVariable String assetGUID, @RequestBody(required=false) ResultsRequestBody requestBody)
      Return all the elements that are anchored to an asset plus relationships between these elements and to other elements.
      Parameters:
      serverName - name of the server instances for this request.
      assetGUID - uniqueId for the connection.
      requestBody - options used to retrieve metadata
      Returns:
      graph of elements or InvalidParameterException one of the parameters is null or invalid or PropertyServerException a problem retrieving the connected asset properties from the property server or UnrecognizedConnectionGUIDException the supplied GUID is not recognized by the property server or UserNotAuthorizedException the requesting user is not authorized to issue this request.
    • getAssetLineageGraph

      @PostMapping(path="/assets/{assetGUID}/as-lineage-graph") public OpenMetadataRootElementResponse getAssetLineageGraph(@PathVariable String serverName, @PathVariable String assetGUID, @RequestBody(required=false) AssetLineageGraphRequestBody requestBody)
      Return all the elements that are linked to an asset using lineage relationships. The relationships are retrieved both from the asset, and the anchored schema elements
      Parameters:
      serverName - name of the server instances for this request
      assetGUID - unique identifier for the asset
      requestBody - list of relationship type names to use in the search plus information supply chain details
      Returns:
      graph of elements or InvalidParameterException - one of the parameters is null or invalid or PropertyServerException - a problem retrieving the connected asset properties from the property server or UserNotAuthorizedException - the requesting user is not authorized to issue this request.
    • findInAssetDomain

      @PostMapping(path="/assets/in-domain/by-search-string") public OpenMetadataRootElementsResponse findInAssetDomain(@PathVariable String serverName, @RequestBody(required=false) SearchStringRequestBody requestBody)
      Locate string value in elements that are anchored to assets. The results are organized by asset. Paging (startFrom and pageSize) applies to the matching elements, before they are grouped by asset. A page may therefore hold fewer assets than pageSize, and an asset whose matches fall on more than one page is returned on each of those pages, with the matches from that page.
      Parameters:
      serverName - name of the server instances for this request
      requestBody - string to search for in text
      Returns:
      list of results for assets that match the search string or InvalidParameterException the searchString is invalid or PropertyServerException a problem access in the property server or UserNotAuthorizedException the user does not have access to the properties
    • getAssetsByMetadataCollectionId

      @PostMapping(path="/assets/by-metadata-collection-id/{metadataCollectionId}") public OpenMetadataRootElementsResponse getAssetsByMetadataCollectionId(@PathVariable String serverName, @PathVariable String metadataCollectionId, @RequestBody(required=false) ResultsRequestBody requestBody)
      Return a list of assets that come from the requested metadata collection.
      Parameters:
      serverName - name of the server instances for this request
      metadataCollectionId - guid to search for
      requestBody - optional type name to restrict search by
      Returns:
      list of unique identifiers for Assets with the requested name or InvalidParameterException the name is invalid or PropertyServerException a problem access in the property server or UserNotAuthorizedException the user does not have access to the properties
    • publishDcatDocument

      @PostMapping(path="/integration-daemons/{serverGUID}/dcat/publish-document") public VoidResponse publishDcatDocument(@PathVariable String serverName, @PathVariable String serverGUID, @RequestBody String document)
      Pass a Data Catalog Vocabulary (DCAT) document to an integration daemon. The integration daemon passes it on to the integration connectors that have registered a listener for DCAT documents, such as the DCAT Cataloguer.
      Parameters:
      serverName - name of the server to route the request to
      serverGUID - unique identifier of the integration daemon's software server asset
      document - DCAT document in JSON-LD format
      Returns:
      void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
    • importDcatDocument

      @PostMapping(path="/assets/dcat/import-document") public GUIDListResponse importDcatDocument(@PathVariable String serverName, @RequestBody String document)
      Catalog a Data Catalog Vocabulary (DCAT) document directly in open metadata. Each dataset becomes a data set asset with an asset for each of its distributions, each data service becomes a deployed API and each catalog becomes a collection folder. Sending the same description again updates the elements.
      Parameters:
      serverName - name of the server to route the request to
      document - DCAT document in JSON-LD format
      Returns:
      unique identifiers of the elements that represent the catalogs, datasets, dataset series and data services described in the document or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
    • getAssetAsDcat

      @GetMapping(path="/assets/{assetGUID}/dcat-document") public DcatDocumentResponse getAssetAsDcat(@PathVariable String serverName, @PathVariable String assetGUID)
      Return the description of an asset in the Data Catalog Vocabulary (DCAT). A deployed API is described as a data service; any other type of asset is described as a dataset. The description is a JSON-LD document.
      Parameters:
      serverName - name of the server to route the request to
      assetGUID - unique identifier of the asset
      Returns:
      DCAT description or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.