api-audit/src/main/java/com/capitalone/dashboard/rest/AuditController.java
/**
     * Peer Review
     *     - Check commit author v/s who merged the pr
     *     - peer review of a pull request
     *     - check whether there are direct commits to base
     * @param request
     * @return
     */
Peer Review
- Check commit author v/s who merged the pr
- peer review of a pull request
- check whether there are direct commits to base
@param request
@return
Peer Review - Check commit author v / s who merged the pr - peer review of a pull request - check whether there are direct commits to base @param request @return
@RequestMapping(value = "/peerReview", method = GET, produces = APPLICATION_JSON_VALUE)
    public ResponseEntity<Iterable<PeerReviewResponse>> peerReview(@Valid PeerReviewRequest request) {
        List<GitRequest> pullRequests = auditService.getPullRequests(request.getRepo(), request.getBranch(), request.getBeginDate(), request.getEndDate());
        List<PeerReviewResponse> allPeerReviews = auditService.getPeerReviewResponses(pullRequests);
        return ResponseEntity.ok().body(allPeerReviews);
    }
@ RequestMapping ( value = "/peerReview" , method = GET , produces = APPLICATION_JSON_VALUE ) public ResponseEntity < Iterable < PeerReviewResponse > > peerReview ( @ Valid PeerReviewRequest request ) { List < GitRequest > pullRequests = auditService . getPullRequests ( request . getRepo ( ) , request . getBranch ( ) , request . getBeginDate ( ) , request . getEndDate ( ) ) ; List < PeerReviewResponse > allPeerReviews = auditService . getPeerReviewResponses ( pullRequests ) ; return ResponseEntity . ok ( ) . body ( allPeerReviews ) ; }
Peer Review
     - Check commit author v/s who merged the pr
     - peer review of a pull request
     - check whether there are direct commits to base
 @param request
 @return
Peer Review - Check commit author v / s who merged the pr - peer review of a pull request - check whether there are direct commits to base @param request @return