commit | c2a542bcab4512812a2ef18b07a08c93ac0ebec0 | [log] [tgz] |
---|---|---|
author | Jian Li <pyguni@gmail.com> | Tue May 10 11:48:19 2016 -0700 |
committer | Jian Li <pyguni@gmail.com> | Tue May 10 22:24:39 2016 +0000 |
tree | 5e97323d8dbef836ac79f48c3f0f54532caf454e | |
parent | 419c8bd1b0eb1aca803065e18614a722aa6bb6be [diff] [blame] |
Explicitly return NO CONTENT type response for http DELETE request Change-Id: I920084b92197bb1687e7d978ad350b2e1290ecbc
diff --git a/apps/vtn/vtnweb/src/main/java/org/onosproject/vtnweb/resources/PortChainWebResource.java b/apps/vtn/vtnweb/src/main/java/org/onosproject/vtnweb/resources/PortChainWebResource.java index 81e2940..d5948cc 100644 --- a/apps/vtn/vtnweb/src/main/java/org/onosproject/vtnweb/resources/PortChainWebResource.java +++ b/apps/vtn/vtnweb/src/main/java/org/onosproject/vtnweb/resources/PortChainWebResource.java
@@ -146,10 +146,11 @@ * Delete details of a specified port chain id. * * @param id port chain id + * @return 204 NO CONTENT */ @Path("{chain_id}") @DELETE - public void deletePortPain(@PathParam("chain_id") String id) { + public Response deletePortPain(@PathParam("chain_id") String id) { log.debug("Deletes port chain by identifier {}.", id); PortChainId portChainId = PortChainId.of(id); @@ -158,5 +159,6 @@ if (!issuccess) { log.debug("Port Chain identifier {} does not exist", id); } + return Response.noContent().build(); } }