@RequestMapping(value = "/dashboardReview", method = GET, produces = APPLICATION_JSON_VALUE)
	@ApiOperation(value = "Dashboard Review", notes = "This endpoint validates that your artifact is meeting the quality gate threshold established in Sonar and returns an appropriate audit status based on whether the threshold has been met or not.", response = DashboardReviewResponse.class, responseContainer = "List")
    public ResponseEntity<DashboardReviewResponse> dashboardReview(@Valid DashboardAuditRequest request) throws AuditException {
        DashboardReviewResponse dashboardReviewResponse = dashboardAuditService.getDashboardReviewResponse(request.getTitle(), DashboardType.Team,
                request.getBusinessService(), request.getBusinessApplication(),
                request.getBeginDate(), request.getEndDate(), request.getAuditType());

        return ResponseEntity.ok().body(dashboardReviewResponse);
    }
@ RequestMapping ( value = "/dashboardReview" , method = GET , produces = APPLICATION_JSON_VALUE ) @ ApiOperation ( value = "Dashboard Review" , notes = "This endpoint validates that your artifact is meeting the quality gate threshold established in Sonar and returns an appropriate audit status based on whether the threshold has been met or not." , response = DashboardReviewResponse . class , responseContainer = "List" ) public ResponseEntity < DashboardReviewResponse > dashboardReview ( @ Valid DashboardAuditRequest request ) throws AuditException { DashboardReviewResponse dashboardReviewResponse = dashboardAuditService . getDashboardReviewResponse ( request . getTitle ( ) , DashboardType . Team , request . getBusinessService ( ) , request . getBusinessApplication ( ) , request . getBeginDate ( ) , request . getEndDate ( ) , request . getAuditType ( ) ) ; return ResponseEntity . ok ( ) . body ( dashboardReviewResponse ) ; }
Dashboard review
- Check which widgets are configured
- Check whether repo and build point to same repository
@param request incoming request
@return response entity
@throws AuditException audit exception