@ RequestMapping ( value = GET_PENDING_DEPLOYMENTS_URL , method = RequestMethod . GET ) public ResponseEntity < Collection < Deployment > > getPendingDeployments ( @ PathVariable ( ENV_PATH_VAR_NAME ) String env , @ PathVariable ( SITE_NAME_PATH_VAR_NAME ) String siteName ) throws DeployerException { Target target = targetService . getTarget ( env , siteName ) ; Collection < Deployment > deployments = target . getPendingDeployments ( ) ; return new ResponseEntity <> ( deployments , RestServiceUtils . setLocationHeader ( new HttpHeaders ( ) , BASE_URL + GET_PENDING_DEPLOYMENTS_URL , env , siteName ) , HttpStatus . OK ) ; }
Gets the pending deployments for a target .