@Path(value="keys")
public class DeviceKeyWebResource
extends org.onosproject.rest.AbstractWebResource
| Constructor and Description |
|---|
DeviceKeyWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addDeviceKey(InputStream stream)
Adds a new device key from the JSON input stream.
|
javax.ws.rs.core.Response |
getDeviceKey(String id)
Gets a single device key by device key unique identifier.
|
javax.ws.rs.core.Response |
getDeviceKeys()
Gets all device keys.
|
javax.ws.rs.core.Response |
removeDeviceKey(String id)
Removes a device key by device key identifier.
|
codec, encodeArray, getService, mapper, newArray, newObject@GET @Produces(value="application/json") public javax.ws.rs.core.Response getDeviceKeys()
@GET
@Path(value="{id}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getDeviceKey(@PathParam(value="id")
String id)
id - device key identifier@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response addDeviceKey(InputStream stream)
stream - device key JSON stream@DELETE
@Path(value="{id}")
@Produces(value="application/json")
public javax.ws.rs.core.Response removeDeviceKey(@PathParam(value="id")
String id)
id - device key identifier