class AssetController {

    @ApiOperation(httpMethod = "GET", value = "Retrieve Asset Config for the given resourceId and configType")
    @GetMapping(value = "/v1/retrieve-asset-config")
    public ResponseEntity<Object> retrieveAssetConfig(
            @RequestParam(name = "resourceId", required = true) String resourceId,
            @RequestParam(name = "configType", required = true) String configType) {
        String assetConfig = assetService.retrieveAssetConfig(resourceId, configType);
        if (assetConfig.isEmpty()) {
            return ResponseUtils
                    .buildFailureResponse(new Exception(
                            "No Configuration found for the given resourceId and configType. Please check the resourceId and configType"));
        } else {
            return ResponseUtils.buildSucessResponse(assetConfig);
        }
    }

}