code: @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);
      }
docs: Gets the pending deployments for a target.
  
  @param env       the target's environment
  @param siteName  the target's site name
  
  @return the pending deployments for the target
  
  @throws DeployerException if an error occurred