@Path(value="intents")
public class DemoResource
extends org.onlab.rest.BaseResource
| Constructor and Description |
|---|
DemoResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
flowTest(InputStream input)
Start the flow test.
|
javax.ws.rs.core.Response |
setup(InputStream input)
Set up the flow test.
|
javax.ws.rs.core.Response |
tearDown()
Tear down the flow test.
|
@POST @Path(value="flowTest") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response flowTest(InputStream input) throws IOException
input - JSON describing how to run the flow testIOException - if the JSON processing fails@POST @Path(value="setup") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response setup(InputStream input) throws IOException
input - JSON describing how to configure the flow testIOException - if the JSON processing fails@GET @Path(value="teardown") @Produces(value="application/json") public javax.ws.rs.core.Response tearDown()