class AssetController {

    @GetMapping(value = "/v1/assetgroup")
    public ResponseEntity<Object> getAssetGroupInfo(@RequestParam(name = "ag", required = true) String assetGroup) {
        Map<String, Object> assetGroupInfo = assetService.getAssetGroupInfo(assetGroup);
        if (assetGroupInfo.isEmpty()) {
            return ResponseUtils.buildFailureResponse(new Exception("No Asset Group found"));
        } else {
            return ResponseUtils.buildSucessResponse(assetGroupInfo);
        }
    }

}