class AssetController {

    @ApiOperation(httpMethod = "POST", value = "Save Asset Configuration")
    @PostMapping(value = "/v1/save-asset-config")
    public ResponseEntity<Object> saveAssetConfig(
            @RequestParam(name = "resourceId", required = true) String resourceId,
            @RequestParam(name = "configType", required = true) String configType,
            @RequestBody(required = true) String config) {
        Integer isAssetConfigSaved = assetService.saveAssetConfig(resourceId, configType, config);
        if (isAssetConfigSaved == 1) {
            return ResponseUtils.buildSucessResponse(HttpStatus.OK);
        } else {
            return ResponseUtils.buildFailureResponse(new Exception("Save Asset Configuration Saving Failed"));
        }
    }

}