@Path(value="networks")
public class NeutronMl2NetworksWebResource
extends org.onosproject.rest.AbstractWebResource
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
NeutronMl2NetworksWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createNetwork(InputStream input)
Creates a network from the JSON input stream.
|
javax.ws.rs.core.Response |
deleteNetwork(String id)
Removes the service network.
|
javax.ws.rs.core.Response |
updateNetwork(String id,
InputStream input)
Updates the network 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 createNetwork(InputStream input)
input - network JSON input stream@PUT
@Path(value="{id}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response updateNetwork(@PathParam(value="id")
String id,
InputStream input)
id - network identifierinput - network JSON input stream@DELETE
@Path(value="{id}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response deleteNetwork(@PathParam(value="id")
String id)
id - network identifierCopyright © 2018. All rights reserved.