mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-05 20:26:16 +02:00
Added the media types that the DELETE methods of a resource can accept.
Change-Id: Icf570d086829df51cc4107b3f6efef3efa9e9d21
This commit is contained in:
parent
7c99811274
commit
7d88174fa1
@ -143,6 +143,7 @@ public class OpensatckRouterWebResource extends AbstractWebResource {
|
||||
|
||||
@DELETE
|
||||
@Path("{id}")
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
public Response deleteRouter(@PathParam("id") String id) {
|
||||
checkNotNull(id);
|
||||
OpenstackRoutingService routingService
|
||||
|
||||
@ -118,7 +118,7 @@ public class OpenstackFloatingIpWebResource extends AbstractWebResource {
|
||||
*/
|
||||
@DELETE
|
||||
@Path("{id}")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
public Response deleteFloatingIp(@PathParam("id") String id) {
|
||||
checkNotNull(id);
|
||||
|
||||
|
||||
@ -57,6 +57,7 @@ public class OpenstackPortWebResource extends AbstractWebResource {
|
||||
|
||||
@Path("{portUUID}")
|
||||
@DELETE
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public Response deletePorts(@PathParam("portUUID") String id) {
|
||||
return Response.noContent().build();
|
||||
}
|
||||
|
||||
@ -57,6 +57,7 @@ public class OpenstackSubnetWebResource extends AbstractWebResource {
|
||||
|
||||
@DELETE
|
||||
@Path("{subnetId}")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public Response deleteSubnet(@PathParam("subnetId") String id) {
|
||||
return Response.noContent().build();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user