@Test void testGetAssetRelationships() { assetCatalogEntityResource.getAssetRelationships(SERVER_NAME, USER, ASSET_GUID, ASSET_TYPE, SEMANTIC_ASSIGMENT, FROM, PAGE_SIZE); verify(assetCatalogService, times(1)).getAssetRelationships(SERVER_NAME, USER, ASSET_GUID, ASSET_TYPE, SEMANTIC_ASSIGMENT, FROM, PAGE_SIZE); }
@GetMapping(path = "/asset-relationships/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) public RelationshipListResponse getAssetRelationships(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("assetGUID") @NotBlank String assetGUID, @RequestParam(name = "assetType", required = false) String assetType, @RequestParam(name = "relationshipType", required = false) String relationshipType, @RequestParam(name = "from", required = false, defaultValue = "0") @PositiveOrZero Integer from, @RequestParam(name = "pageSize", required = false, defaultValue = "100") @PositiveOrZero Integer pageSize) { return assetService.getAssetRelationships(serverName, userId, assetGUID, assetType, relationshipType, from, pageSize); }
AssetCatalogEntityResource { @GetMapping(path = "/asset-relationships/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) public RelationshipListResponse getAssetRelationships(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("assetGUID") @NotBlank String assetGUID, @RequestParam(name = "assetType", required = false) String assetType, @RequestParam(name = "relationshipType", required = false) String relationshipType, @RequestParam(name = "from", required = false, defaultValue = "0") @PositiveOrZero Integer from, @RequestParam(name = "pageSize", required = false, defaultValue = "100") @PositiveOrZero Integer pageSize) { return assetService.getAssetRelationships(serverName, userId, assetGUID, assetType, relationshipType, from, pageSize); } }
AssetCatalogEntityResource { @GetMapping(path = "/asset-relationships/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) public RelationshipListResponse getAssetRelationships(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("assetGUID") @NotBlank String assetGUID, @RequestParam(name = "assetType", required = false) String assetType, @RequestParam(name = "relationshipType", required = false) String relationshipType, @RequestParam(name = "from", required = false, defaultValue = "0") @PositiveOrZero Integer from, @RequestParam(name = "pageSize", required = false, defaultValue = "100") @PositiveOrZero Integer pageSize) { return assetService.getAssetRelationships(serverName, userId, assetGUID, assetType, relationshipType, from, pageSize); }  }
AssetCatalogEntityResource { @GetMapping(path = "/asset-relationships/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) public RelationshipListResponse getAssetRelationships(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("assetGUID") @NotBlank String assetGUID, @RequestParam(name = "assetType", required = false) String assetType, @RequestParam(name = "relationshipType", required = false) String relationshipType, @RequestParam(name = "from", required = false, defaultValue = "0") @PositiveOrZero Integer from, @RequestParam(name = "pageSize", required = false, defaultValue = "100") @PositiveOrZero Integer pageSize) { return assetService.getAssetRelationships(serverName, userId, assetGUID, assetType, relationshipType, from, pageSize); }  @GetMapping(path = "/asset-details/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) AssetDescriptionResponse getAssetDetail(@PathVariable("serverName") String serverName,
                                                       @PathVariable("userId") String userId,
                                                       @PathVariable("assetGUID") @NotBlank String assetGUID,
                                                       @RequestParam(name = "assetType", required = false) @NotNull String assetType); @GetMapping(path = "/asset-universe/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) AssetDescriptionResponse getAssetUniverse(@PathVariable("serverName") String serverName,
                                                         @PathVariable("userId") String userId,
                                                         @PathVariable("assetGUID") @NotBlank String assetGUID,
                                                         @RequestParam(name = "assetType", required = false) @NotNull String assetType); @GetMapping(path = "/asset-relationships/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) RelationshipListResponse getAssetRelationships(@PathVariable("serverName") String serverName,
                                                          @PathVariable("userId") String userId,
                                                          @PathVariable("assetGUID") @NotBlank String assetGUID,
                                                          @RequestParam(name = "assetType", required = false) String assetType,
                                                          @RequestParam(name = "relationshipType", required = false) String relationshipType,
                                                          @RequestParam(name = "from", required = false, defaultValue = "0") @PositiveOrZero Integer from,
                                                          @RequestParam(name = "pageSize", required = false, defaultValue = "100") @PositiveOrZero Integer pageSize); @GetMapping(path = "/asset-classifications/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) ClassificationListResponse getClassificationsForAsset(@PathVariable("serverName") String serverName,
                                                                 @PathVariable("userId") String userId,
                                                                 @PathVariable("assetGUID") @NotBlank String assetGUID,
                                                                 @RequestParam(name = "assetType", required = false) String assetType,
                                                                 @RequestParam(name = "classificationName", required = false) String classificationName); @GetMapping(path = "/linking-assets/from/{assetGUID}/to/{endAssetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) AssetDescriptionListResponse getLinkingAssets(@PathVariable("serverName") String serverName,
                                                         @PathVariable("userId") String userId,
                                                         @PathVariable("assetGUID") @NotBlank String startAssetGUID,
                                                         @PathVariable("endAssetGUID") @NotBlank String endAssetGUID); @GetMapping(path = "/linking-assets-relationships/from/{assetGUID}/to/{endAssetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) RelationshipListResponse getLinkingRelationships(@PathVariable("serverName") String serverName,
                                                            @PathVariable("userId") String userId,
                                                            @PathVariable("assetGUID") String startAssetGUID,
                                                            @PathVariable("endAssetGUID") String endAssetGUID); @PostMapping(path = "/assets-from-neighborhood/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) AssetDescriptionListResponse getAssetsFromNeighborhood(@PathVariable("serverName") String serverName,
                                                                  @PathVariable("userId") String userId,
                                                                  @PathVariable("assetGUID") @NotBlank String assetGUID,
                                                                  @RequestBody SearchParameters searchParameters); @PostMapping(path = "/search", produces = MediaType.APPLICATION_JSON_VALUE) AssetListResponse searchByType(@PathVariable("serverName") String serverName,
                                          @PathVariable("userId") String userId,
                                          @RequestParam("searchCriteria") @NotBlank String searchCriteria,
                                          @RequestBody SearchParameters searchParameters); @GetMapping(path = "/asset-context/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) AssetResponse getAssetContext(@PathVariable("serverName") String serverName,
                                             @PathVariable("userId") String userId,
                                             @PathVariable("assetGUID") @NotBlank String assetGUID,
                                             @RequestParam(name = "assetType", required = false) String assetType); @GetMapping(path = "/supportedTypes", produces = MediaType.APPLICATION_JSON_VALUE) AssetCatalogSupportedTypes getSupportedTypes(@PathVariable("serverName") String serverName,
                                                        @PathVariable("userId") String userId,
                                                        @RequestParam(name = "type", required = false) @Nullable String type); }
AssetCatalogEntityResource { @GetMapping(path = "/asset-relationships/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) public RelationshipListResponse getAssetRelationships(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("assetGUID") @NotBlank String assetGUID, @RequestParam(name = "assetType", required = false) String assetType, @RequestParam(name = "relationshipType", required = false) String relationshipType, @RequestParam(name = "from", required = false, defaultValue = "0") @PositiveOrZero Integer from, @RequestParam(name = "pageSize", required = false, defaultValue = "100") @PositiveOrZero Integer pageSize) { return assetService.getAssetRelationships(serverName, userId, assetGUID, assetType, relationshipType, from, pageSize); }  @GetMapping(path = "/asset-details/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) AssetDescriptionResponse getAssetDetail(@PathVariable("serverName") String serverName,
                                                       @PathVariable("userId") String userId,
                                                       @PathVariable("assetGUID") @NotBlank String assetGUID,
                                                       @RequestParam(name = "assetType", required = false) @NotNull String assetType); @GetMapping(path = "/asset-universe/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) AssetDescriptionResponse getAssetUniverse(@PathVariable("serverName") String serverName,
                                                         @PathVariable("userId") String userId,
                                                         @PathVariable("assetGUID") @NotBlank String assetGUID,
                                                         @RequestParam(name = "assetType", required = false) @NotNull String assetType); @GetMapping(path = "/asset-relationships/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) RelationshipListResponse getAssetRelationships(@PathVariable("serverName") String serverName,
                                                          @PathVariable("userId") String userId,
                                                          @PathVariable("assetGUID") @NotBlank String assetGUID,
                                                          @RequestParam(name = "assetType", required = false) String assetType,
                                                          @RequestParam(name = "relationshipType", required = false) String relationshipType,
                                                          @RequestParam(name = "from", required = false, defaultValue = "0") @PositiveOrZero Integer from,
                                                          @RequestParam(name = "pageSize", required = false, defaultValue = "100") @PositiveOrZero Integer pageSize); @GetMapping(path = "/asset-classifications/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) ClassificationListResponse getClassificationsForAsset(@PathVariable("serverName") String serverName,
                                                                 @PathVariable("userId") String userId,
                                                                 @PathVariable("assetGUID") @NotBlank String assetGUID,
                                                                 @RequestParam(name = "assetType", required = false) String assetType,
                                                                 @RequestParam(name = "classificationName", required = false) String classificationName); @GetMapping(path = "/linking-assets/from/{assetGUID}/to/{endAssetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) AssetDescriptionListResponse getLinkingAssets(@PathVariable("serverName") String serverName,
                                                         @PathVariable("userId") String userId,
                                                         @PathVariable("assetGUID") @NotBlank String startAssetGUID,
                                                         @PathVariable("endAssetGUID") @NotBlank String endAssetGUID); @GetMapping(path = "/linking-assets-relationships/from/{assetGUID}/to/{endAssetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) RelationshipListResponse getLinkingRelationships(@PathVariable("serverName") String serverName,
                                                            @PathVariable("userId") String userId,
                                                            @PathVariable("assetGUID") String startAssetGUID,
                                                            @PathVariable("endAssetGUID") String endAssetGUID); @PostMapping(path = "/assets-from-neighborhood/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) AssetDescriptionListResponse getAssetsFromNeighborhood(@PathVariable("serverName") String serverName,
                                                                  @PathVariable("userId") String userId,
                                                                  @PathVariable("assetGUID") @NotBlank String assetGUID,
                                                                  @RequestBody SearchParameters searchParameters); @PostMapping(path = "/search", produces = MediaType.APPLICATION_JSON_VALUE) AssetListResponse searchByType(@PathVariable("serverName") String serverName,
                                          @PathVariable("userId") String userId,
                                          @RequestParam("searchCriteria") @NotBlank String searchCriteria,
                                          @RequestBody SearchParameters searchParameters); @GetMapping(path = "/asset-context/{assetGUID}", produces = MediaType.APPLICATION_JSON_VALUE) AssetResponse getAssetContext(@PathVariable("serverName") String serverName,
                                             @PathVariable("userId") String userId,
                                             @PathVariable("assetGUID") @NotBlank String assetGUID,
                                             @RequestParam(name = "assetType", required = false) String assetType); @GetMapping(path = "/supportedTypes", produces = MediaType.APPLICATION_JSON_VALUE) AssetCatalogSupportedTypes getSupportedTypes(@PathVariable("serverName") String serverName,
                                                        @PathVariable("userId") String userId,
                                                        @RequestParam(name = "type", required = false) @Nullable String type);  }