class ProjectionController implements Constants {

    @RequestMapping(path = "/v1/getPatchingAndProjectionProgress", method = RequestMethod.GET)
    public ResponseEntity<Object> getPatchingAndProjectionProgress(
            @RequestParam(name = "ag", required = true) String assetGroup) {
        //
        if (Strings.isNullOrEmpty(assetGroup)) {
            return ResponseUtils.buildFailureResponse(new ServiceException(ASSET_MANDATORY));
        }
        ProjectionResponse response;
        try {
            response = projectionService.getPatchingAndProjectionByWeek(assetGroup);
        } catch (ServiceException e) {
            return ResponseUtils.buildFailureResponse(e);
        }
        return ResponseUtils.buildSucessResponse(response);
    }

}