jskim
Committed by Gerrit Code Review

Added the media types that the DELETE methods of a resource can accept.

Change-Id: Icf570d086829df51cc4107b3f6efef3efa9e9d21
...@@ -143,6 +143,7 @@ public class OpensatckRouterWebResource extends AbstractWebResource { ...@@ -143,6 +143,7 @@ public class OpensatckRouterWebResource extends AbstractWebResource {
143 143
144 @DELETE 144 @DELETE
145 @Path("{id}") 145 @Path("{id}")
146 + @Consumes(MediaType.APPLICATION_JSON)
146 public Response deleteRouter(@PathParam("id") String id) { 147 public Response deleteRouter(@PathParam("id") String id) {
147 checkNotNull(id); 148 checkNotNull(id);
148 OpenstackRoutingService routingService 149 OpenstackRoutingService routingService
......
...@@ -118,7 +118,7 @@ public class OpenstackFloatingIpWebResource extends AbstractWebResource { ...@@ -118,7 +118,7 @@ public class OpenstackFloatingIpWebResource extends AbstractWebResource {
118 */ 118 */
119 @DELETE 119 @DELETE
120 @Path("{id}") 120 @Path("{id}")
121 - @Produces(MediaType.APPLICATION_JSON) 121 + @Consumes(MediaType.APPLICATION_JSON)
122 public Response deleteFloatingIp(@PathParam("id") String id) { 122 public Response deleteFloatingIp(@PathParam("id") String id) {
123 checkNotNull(id); 123 checkNotNull(id);
124 124
......
...@@ -57,6 +57,7 @@ public class OpenstackPortWebResource extends AbstractWebResource { ...@@ -57,6 +57,7 @@ public class OpenstackPortWebResource extends AbstractWebResource {
57 57
58 @Path("{portUUID}") 58 @Path("{portUUID}")
59 @DELETE 59 @DELETE
60 + @Produces(MediaType.APPLICATION_JSON)
60 public Response deletePorts(@PathParam("portUUID") String id) { 61 public Response deletePorts(@PathParam("portUUID") String id) {
61 return Response.noContent().build(); 62 return Response.noContent().build();
62 } 63 }
......
...@@ -57,6 +57,7 @@ public class OpenstackSubnetWebResource extends AbstractWebResource { ...@@ -57,6 +57,7 @@ public class OpenstackSubnetWebResource extends AbstractWebResource {
57 57
58 @DELETE 58 @DELETE
59 @Path("{subnetId}") 59 @Path("{subnetId}")
60 + @Produces(MediaType.APPLICATION_JSON)
60 public Response deleteSubnet(@PathParam("subnetId") String id) { 61 public Response deleteSubnet(@PathParam("subnetId") String id) {
61 return Response.noContent().build(); 62 return Response.noContent().build();
62 } 63 }
......