Search in sources :

Example 1 with BlackDuckPath

use of com.synopsys.integration.blackduck.api.core.BlackDuckPath in project blackduck-common by blackducksoftware.

the class CodeLocationService method getCodeLocationById.

public CodeLocationView getCodeLocationById(String codeLocationId) throws IntegrationException {
    BlackDuckPath blackDuckPath = new BlackDuckPath(ApiDiscovery.CODELOCATIONS_PATH.getPath() + "/" + codeLocationId, CodeLocationView.class, false);
    UrlSingleResponse<CodeLocationView> codeLocationResponse = apiDiscovery.metaSingleResponse(blackDuckPath);
    return blackDuckApiClient.getResponse(codeLocationResponse);
}
Also used : CodeLocationView(com.synopsys.integration.blackduck.api.generated.view.CodeLocationView) BlackDuckPath(com.synopsys.integration.blackduck.api.core.BlackDuckPath)

Aggregations

BlackDuckPath (com.synopsys.integration.blackduck.api.core.BlackDuckPath)1 CodeLocationView (com.synopsys.integration.blackduck.api.generated.view.CodeLocationView)1