code: @RequestMapping(value = DEPLOY_TARGET_URL, method = RequestMethod.POST)
      public ResponseEntity<Result> deployTarget(@PathVariable(ENV_PATH_VAR_NAME) String env,
                                                 @PathVariable(SITE_NAME_PATH_VAR_NAME) String siteName,
                                                 @RequestBody(required = false) Map<String, Object> params)
                              throws DeployerException, ExecutionException, InterruptedException {
          if (params == null) {
              params = new HashMap<>();
          }
  
          boolean waitTillDone = false;
          if (MapUtils.isNotEmpty(params)) {
              waitTillDone = BooleanUtils.toBoolean(params.remove(WAIT_TILL_DONE_PARAM_NAME));
          }
  
          deploymentService.deployTarget(env, siteName, waitTillDone, params);
  
          return ResponseEntity.status(HttpStatus.ACCEPTED).body(Result.OK);
      }
docs: Deploys the {@link Target} with the specified environment and site name.
  
  @param env       the target's environment
  @param siteName  the target's site name
  @param params    any additional parameters that can be used by the {@link org.craftercms.deployer.api.DeploymentProcessor}s, for
  example {@code reprocess_all_files}
  
  @return the response entity with a 200 OK status
  
  @throws DeployerException if an error occurred