@Test void getGovernedAssets() { List<String> types = new ArrayList<>(); types.add(SCHEMA_ELEMENT); governanceEngineOMASResource.getGovernedAssets(SERVER_NAME, USER, types, FROM, PAGE_SIZE); verify(governanceEngineRESTServices, times(1)).getGovernedAssets(SERVER_NAME, USER, types, FROM, PAGE_SIZE); }
@GetMapping(path = "/assets", produces = MediaType.APPLICATION_JSON_VALUE) public GovernedAssetListResponse getGovernedAssets(@PathVariable String serverName, @PathVariable String userId, @RequestParam(value = "entityTypes", required = false) List<String> entityTypes, @RequestParam(value = "offset", required = false) Integer offset, @RequestParam(value = "pageSize", required = false) Integer pageSize) { return restAPI.getGovernedAssets(serverName, userId, entityTypes, offset, pageSize); }
GovernanceEngineOMASResource { @GetMapping(path = "/assets", produces = MediaType.APPLICATION_JSON_VALUE) public GovernedAssetListResponse getGovernedAssets(@PathVariable String serverName, @PathVariable String userId, @RequestParam(value = "entityTypes", required = false) List<String> entityTypes, @RequestParam(value = "offset", required = false) Integer offset, @RequestParam(value = "pageSize", required = false) Integer pageSize) { return restAPI.getGovernedAssets(serverName, userId, entityTypes, offset, pageSize); } }
GovernanceEngineOMASResource { @GetMapping(path = "/assets", produces = MediaType.APPLICATION_JSON_VALUE) public GovernedAssetListResponse getGovernedAssets(@PathVariable String serverName, @PathVariable String userId, @RequestParam(value = "entityTypes", required = false) List<String> entityTypes, @RequestParam(value = "offset", required = false) Integer offset, @RequestParam(value = "pageSize", required = false) Integer pageSize) { return restAPI.getGovernedAssets(serverName, userId, entityTypes, offset, pageSize); }  }
GovernanceEngineOMASResource { @GetMapping(path = "/assets", produces = MediaType.APPLICATION_JSON_VALUE) public GovernedAssetListResponse getGovernedAssets(@PathVariable String serverName, @PathVariable String userId, @RequestParam(value = "entityTypes", required = false) List<String> entityTypes, @RequestParam(value = "offset", required = false) Integer offset, @RequestParam(value = "pageSize", required = false) Integer pageSize) { return restAPI.getGovernedAssets(serverName, userId, entityTypes, offset, pageSize); }  @GetMapping(path = "/assets", produces = MediaType.APPLICATION_JSON_VALUE) GovernedAssetListResponse getGovernedAssets(@PathVariable String serverName,
                                                       @PathVariable String userId,
                                                       @RequestParam(value = "entityTypes", required = false) List<String> entityTypes,
                                                       @RequestParam(value = "offset", required = false) Integer offset,
                                                       @RequestParam(value = "pageSize", required = false) Integer pageSize); @GetMapping(path = "/assets/{assetGuid}", produces = MediaType.APPLICATION_JSON_VALUE) GovernedAssetResponse getGovernedAsset(@PathVariable String serverName,
                                                  @PathVariable String userId,
                                                  @PathVariable String assetGuid); @PostMapping(path = "/software-server-capabilities") StringResponse createSoftwareServerCapability(@PathVariable("serverName") String serverName,
                                                         @PathVariable("userId") String userId,
                                                         @RequestBody SoftwareServerCapabilityRequestBody requestBody); @GetMapping(path = "/software-server-capabilities/{guid}") SoftwareServerCapabilityResponse getSoftwareServerCapabilityByGUID(@PathVariable String serverName,
                                                                              @PathVariable String userId,
                                                                              @PathVariable String guid); }
GovernanceEngineOMASResource { @GetMapping(path = "/assets", produces = MediaType.APPLICATION_JSON_VALUE) public GovernedAssetListResponse getGovernedAssets(@PathVariable String serverName, @PathVariable String userId, @RequestParam(value = "entityTypes", required = false) List<String> entityTypes, @RequestParam(value = "offset", required = false) Integer offset, @RequestParam(value = "pageSize", required = false) Integer pageSize) { return restAPI.getGovernedAssets(serverName, userId, entityTypes, offset, pageSize); }  @GetMapping(path = "/assets", produces = MediaType.APPLICATION_JSON_VALUE) GovernedAssetListResponse getGovernedAssets(@PathVariable String serverName,
                                                       @PathVariable String userId,
                                                       @RequestParam(value = "entityTypes", required = false) List<String> entityTypes,
                                                       @RequestParam(value = "offset", required = false) Integer offset,
                                                       @RequestParam(value = "pageSize", required = false) Integer pageSize); @GetMapping(path = "/assets/{assetGuid}", produces = MediaType.APPLICATION_JSON_VALUE) GovernedAssetResponse getGovernedAsset(@PathVariable String serverName,
                                                  @PathVariable String userId,
                                                  @PathVariable String assetGuid); @PostMapping(path = "/software-server-capabilities") StringResponse createSoftwareServerCapability(@PathVariable("serverName") String serverName,
                                                         @PathVariable("userId") String userId,
                                                         @RequestBody SoftwareServerCapabilityRequestBody requestBody); @GetMapping(path = "/software-server-capabilities/{guid}") SoftwareServerCapabilityResponse getSoftwareServerCapabilityByGUID(@PathVariable String serverName,
                                                                              @PathVariable String userId,
                                                                              @PathVariable String guid);  }