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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseThe dataset that feeds a given step, e.g.list()All discovered datasets (ordered by the step each feeds).
-
Constructor Details
-
SampleDataResource
public SampleDataResource()Creates the sample-data resource. Instances are managed by the JAX-RS runtime.
-
-
Method Details
-
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
200response with the descriptor, or a404when no dataset feeds the stage
-