Skip to main content

Service interface

@Path("/")
public interface SAMRestService {
 
    @GET
    @Path("")
    @Produces({ "text/plain" })
    Response checkAlive();
 
    @GET
    @Path("list")
    @Produces({ "application/json" })
    Response getFlows(@QueryParam("offset") @DefaultValue("0") Integer offs
et,
            @QueryParam("limit") @DefaultValue("10") Integer limit);
 
    @GET
    @Path("flow/{id}")
    @Produces({ "application/json" })
    Response getFlow(@PathParam("id") String id);
 
    @GET
    @Path("event/{id}")
    @Produces({ "application/json" })
    Response getEvent(@PathParam("id") String id);
 
}

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!