@Path(value="intents")
public class IntentsWebResource
extends org.onosproject.rest.AbstractWebResource
| Constructor and Description |
|---|
IntentsWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createIntent(InputStream stream)
Submits a new intent.
|
javax.ws.rs.core.Response |
deleteIntentById(String appId,
String key)
Withdraws intent.
|
javax.ws.rs.core.Response |
getIntentById(String appId,
String key)
Gets intent by application and key.
|
javax.ws.rs.core.Response |
getIntentFlowsById(String appId,
String key)
Gets all related flow entries created by a particular intent.
|
javax.ws.rs.core.Response |
getIntents()
Gets all intents.
|
javax.ws.rs.core.Response |
getIntentSummary()
Gets Summary of all intents.
|
javax.ws.rs.core.Response |
getIntentWithInstallable(String appId,
String key)
Gets intent installables by application ID and key.
|
codec, encodeArray, getService, mapper, newArray, newObject@GET @Produces(value="application/json") public javax.ws.rs.core.Response getIntents()
@GET @Produces(value="application/json") @Path(value="minisummary") public javax.ws.rs.core.Response getIntentSummary()
@GET
@Produces(value="application/json")
@Path(value="installables/{appId}/{key}")
public javax.ws.rs.core.Response getIntentWithInstallable(@PathParam(value="appId")
String appId,
@PathParam(value="key")
String key)
appId - application identifierkey - intent key@GET
@Produces(value="application/json")
@Path(value="{appId}/{key}")
public javax.ws.rs.core.Response getIntentById(@PathParam(value="appId")
String appId,
@PathParam(value="key")
String key)
appId - application identifierkey - intent key@GET
@Produces(value="application/json")
@Path(value="relatedflows/{appId}/{key}")
public javax.ws.rs.core.Response getIntentFlowsById(@PathParam(value="appId")
String appId,
@PathParam(value="key")
String key)
appId - application identifierkey - intent key@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response createIntent(InputStream stream)
stream - input JSON@DELETE
@Path(value="{appId}/{key}")
public javax.ws.rs.core.Response deleteIntentById(@PathParam(value="appId")
String appId,
@PathParam(value="key")
String key)
appId - application identifierkey - intent key