@Path(value="subnets")
public class NeutronMl2SubnetsWebResource
extends org.onosproject.rest.AbstractWebResource
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
NeutronMl2SubnetsWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createSubnet(InputStream input)
Creates a subnet from the JSON input stream.
|
javax.ws.rs.core.Response |
deleteSubnet(String id)
Removes the subnet.
|
javax.ws.rs.core.Response |
updateSubnet(String id,
InputStream input)
Updates the subnet with the specified identifier.
|
codec, encodeArray, getService, mapper, newArray, newObject@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response createSubnet(InputStream input)
input - subnet JSON input stream@PUT
@Path(value="{id}")
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response updateSubnet(@PathParam(value="id")
String id,
InputStream input)
id - subnet identifierinput - subnet JSON input stream@DELETE
@Path(value="{id}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response deleteSubnet(@PathParam(value="id")
String id)
id - subnet identifierCopyright © 2018. All rights reserved.