Class SampleDataResource

java.lang.Object
ai.pipestream.module.pipelineprobe.sampledata.SampleDataResource

@Path("/sample-data/v1") @Produces("application/json") public class SampleDataResource extends Object
Read-only view of the SampleDataRegistry: which sample-data fixture jars are on the classpath, and what each one is. Lets you confirm the step-input datasets registered correctly without digging through logs.
  • Constructor Details

    • SampleDataResource

      public SampleDataResource()
      Creates the sample-data resource. Instances are managed by the JAX-RS runtime.
  • Method Details

    • list

      @GET public List<SampleDataDescriptor> list()
      All discovered datasets (ordered by the step each feeds).
      Returns:
      the list of all registered sample-data descriptors
    • forStage

      @GET @Path("/stage/{stage}") public jakarta.ws.rs.core.Response forStage(@PathParam("stage") String stage)
      The dataset that feeds a given step, e.g. /sample-data/v1/stage/chunker.
      Parameters:
      stage - the pipeline step/stage whose dataset to look up
      Returns:
      a 200 response with the descriptor, or a 404 when no dataset feeds the stage