class AssetController {

    @ApiOperation(httpMethod = "GET", value = "Get User Default Asset Group")
    @GetMapping(value = "/v1/list/user-default-assetgroup")
    public ResponseEntity<Object> getUserDefaultAssetGroup(
            @ApiParam(value = "Provide the User Id for getting the Default Asset Group", required = true) @RequestParam(name = "userId", required = true) String userId) {
        String userDefaultAssetGroup = assetService.getUserDefaultAssetGroup(userId);
        if (userDefaultAssetGroup.isEmpty()) {
            return ResponseUtils.buildFailureResponse(new Exception("No Default Asset Group found"));
        } else {
            return ResponseUtils.buildSucessResponse(userDefaultAssetGroup);
        }
    }

}