class AssetDetailController {

    @ApiOperation(httpMethod = "GET", value = "Get the ad group details for a ec2 instance")
    @GetMapping(value = "/v1/{assetGroup}/ec2/{resourceId}/ad-groups")
    public ResponseEntity<Object> getAdGroupsDetail(@PathVariable(name = "assetGroup", required = true) String ag,
            @PathVariable(name = "resourceId", required = true) String resourceId) {
        List<Map<String, String>> adGroupsDetail;

        try {
            adGroupsDetail = assetService.getAdGroupsDetail(ag, resourceId);

        } catch (Exception e) {
            LOGGER.error("Error in getAdGroupsDetail ",e);
            adGroupsDetail = new ArrayList<>();
        }
        return ResponseUtils.buildSucessResponse(adGroupsDetail);
    }

}