Bug 5730 - Delete subset of list items using PATCH? 49/42449/9
authorIvan Hrasko <ihrasko@cisco.com>
Mon, 25 Jul 2016 10:35:53 +0000 (12:35 +0200)
committerIvan Hrasko <ihrasko@cisco.com>
Fri, 29 Jul 2016 08:17:12 +0000 (08:17 +0000)
commitcd5f80bfe652d37f86de25801344ac183d2ec91e
tree15830b9646b1c6c5aad15209c8d739e0682bee57
parente0fe261561ce800bceb808649730ecfa87ed937e
Bug 5730 - Delete subset of list items using PATCH?

- fix: edit is not ignored when end of input is reached
- fix: only create, merge, replace and insert operations require value to be present
- fix: if value is not present with create, merge, replace or insert operation then error 400 is returned
- fix: if value is used with other operations error 400 is returned
- fix: deleting sublist values instead of full parent
- fix: order of patch edit fields is not important anymore (target, value)
- move class StringModuleInstanceIdentifierCodec to own file

Change-Id: I4c3f407858034b49795034da6c93b41f9d891b62
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
Signed-off-by: Ivan Hrasko <ihrasko@cisco.com>
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/rest/impl/JsonToPATCHBodyReader.java
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/rest/impl/StringModuleInstanceIdentifierCodec.java [new file with mode: 0644]
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/PATCHEditOperation.java
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/PATCHEntity.java
restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/TestJsonPATCHBodyReader.java
restconf/sal-rest-connector/src/test/resources/instanceidentifier/json/jsonPATCHdataCreateAndDelete.json [new file with mode: 0644]
restconf/sal-rest-connector/src/test/resources/instanceidentifier/json/jsonPATCHdataValueMissing.json [new file with mode: 0644]
restconf/sal-rest-connector/src/test/resources/instanceidentifier/json/jsonPATCHdataValueNotSupported.json [new file with mode: 0644]