All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.talend.esb.sam.service.rest.SAMRestService Maven / Gradle / Ivy

There is a newer version: 8.0.1.R2024-05-RT
Show newest version
package org.talend.esb.sam.service.rest;

import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Response;

@Path("/")
public interface SAMRestService {

    @GET
    @Path("")
    @Produces({ "text/plain" })
    Response checkAlive();

    @GET
    @Path("list")
    @Produces({ "application/json" })
    Response getFlows(@QueryParam("offset") @DefaultValue("0") Integer offset,
            @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);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy