Restconf 8040 should return 204 for delete and put 90/68990/3
authorTom Pantelis <tompantelis@gmail.com>
Wed, 28 Feb 2018 19:13:38 +0000 (14:13 -0500)
committerJakubToth <jakub.toth@pantheon.tech>
Mon, 26 Mar 2018 09:49:19 +0000 (09:49 +0000)
commit346c8b24015a58ccc44c11848ff24ecc35c54811
tree255e0f44f875d285b2098f1c15ff45a8ccb6133c
parentbbd99eaab1e3f29ead686ef072200a606bc45fb6
Restconf 8040 should return 204 for delete and put

restconf was returning 200 Ok but according to RCF8040, for put,
"If an existing resource is modified, a "204 No Content"
status-line is returned."" and for delete, "If the DELETE request
succeeds, a "204 No Content" status-line is returned.".

Change-Id: I7133cdd747c1869d6b640c873bbcdccd437e8900
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/utils/DeleteDataTransactionUtil.java
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/utils/PutDataTransactionUtil.java
restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImplTest.java
restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/rests/utils/DeleteDataTransactionUtilTest.java