class ProjectionController implements Constants {

    @RequestMapping(path = "/v1/getPatchingProgressByDirector", method = RequestMethod.POST)
    public ResponseEntity<Object> patchingProgressByDirector(@RequestBody(required = false) Request request) {
        String assetGroup = request.getAg();
        if (Strings.isNullOrEmpty(assetGroup)) {
            return ResponseUtils.buildFailureResponse(new ServiceException(ASSET_MANDATORY));
        }
        PatchingProgressResponse response;
        try {
            response = projectionService.getPatchingProgressByDirector(assetGroup);
        } catch (ServiceException e) {
            return ResponseUtils.buildFailureResponse(e);
        }
        return ResponseUtils.buildSucessResponse(response);
    }

}