container/src/main/java/com/streamsets/datacollector/restapi/PipelineStoreResource.java
@Path("/detachedstage")
  @GET
  @ApiOperation(value = "Returns empty envelope for detached stage.",
    response = DetachedStageConfigurationJson.class,
    authorizations = @Authorization(value = "basic")
  )
  @Produces(MediaType.APPLICATION_JSON)
  @RolesAllowed({
      AuthzRole.CREATOR, AuthzRole.ADMIN, AuthzRole.CREATOR_REMOTE, AuthzRole.ADMIN_REMOTE
  })
  public Response createDetachedStageEnvelope() throws PipelineException {
    DetachedStageConfigurationJson detachedStage = new DetachedStageConfigurationJson(new DetachedStageConfiguration());
    return Response.ok().entity(detachedStage).build();
  }
@Path("/detachedstage")
  @GET
  @ApiOperation(value = "Returns empty envelope for detached stage.",
    response = DetachedStageConfigurationJson.class,
    authorizations = @Authorization(value = "basic")
  )
  @Produces(MediaType.APPLICATION_JSON)
  @RolesAllowed({
      AuthzRole.CREATOR, AuthzRole.ADMIN, AuthzRole.CREATOR_REMOTE, AuthzRole.ADMIN_REMOTE
  })
  public Response createDetachedStageEnvelope() throws PipelineException {
    DetachedStageConfigurationJson detachedStage = new DetachedStageConfigurationJson(new DetachedStageConfiguration());
    return Response.ok().entity(detachedStage).build();
  }
Detached stage APIs