Explicitly return NO CONTENT type response for http DELETE request
Change-Id: I920084b92197bb1687e7d978ad350b2e1290ecbc
diff --git a/app/src/main/java/org/onosproject/olt/rest/OltWebResource.java b/app/src/main/java/org/onosproject/olt/rest/OltWebResource.java
index 2e6248e..84536ac 100644
--- a/app/src/main/java/org/onosproject/olt/rest/OltWebResource.java
+++ b/app/src/main/java/org/onosproject/olt/rest/OltWebResource.java
@@ -66,10 +66,9 @@
*
* @param device device id
* @param port port number
- * @return 200 OK
+ * @return 204 NO CONTENT
*/
@DELETE
- @Produces(MediaType.APPLICATION_JSON)
@Path("{device}/{port}")
public Response removeSubscriber(
@PathParam("device")String device,
@@ -79,6 +78,6 @@
PortNumber portNumber = PortNumber.portNumber(port);
ConnectPoint connectPoint = new ConnectPoint(deviceId, portNumber);
service.removeSubscriber(connectPoint);
- return ok("").build();
+ return Response.noContent().build();
}
}