summaryrefslogtreecommitdiffstats
path: root/csit/data/bookstorePatchExample.json
diff options
context:
space:
mode:
authortragait <rahul.tyagi@est.tech>2022-01-13 13:15:14 +0000
committertragait <rahul.tyagi@est.tech>2022-01-21 10:08:44 +0000
commitecd7f5e418c17d8f0f3f12af4fd0a543084e8254 (patch)
treeb68f4140d48485291bcc4970c14f70fe1b444917 /csit/data/bookstorePatchExample.json
parent5ffd70d6cb68373389198a7c3fe5acb80c53e7a0 (diff)
patch operation for ncmp running
Signed-off-by: tragait <rahul.tyagi@est.tech> Change-Id: Ib136291963a5d7f115c8637708a1d5a64c62c9f2 Issue-ID: CPS-641
Diffstat (limited to 'csit/data/bookstorePatchExample.json')
-rw-r--r--csit/data/bookstorePatchExample.json59
1 files changed, 59 insertions, 0 deletions
diff --git a/csit/data/bookstorePatchExample.json b/csit/data/bookstorePatchExample.json
new file mode 100644
index 0000000000..039ea4bcdd
--- /dev/null
+++ b/csit/data/bookstorePatchExample.json
@@ -0,0 +1,59 @@
+{
+ "ietf-restconf:yang-patch":{
+ "patch-id":"patch-1",
+ "edit":[
+ {
+ "edit-id":"edit1",
+ "operation":"merge",
+ "target":"/",
+ "value":{
+ "bookstore": {
+ "categories": [
+ {
+ "code": "100",
+ "books": [
+ {
+ "title": "A new book in a new category",
+ "pub_year": "2019",
+ "authors": [
+ "Rahul"
+ ],
+ "lang": "English",
+ "price": "2011"
+ }
+ ],
+ "name": "Category100"
+ }
+ ]
+ }
+ }
+ },
+ {
+ "edit-id":"edit2",
+ "operation":"merge",
+ "target":"/",
+ "value":{
+ "bookstore": {
+ "categories": [
+ {
+ "code": "02",
+ "name": "Horror",
+ "books": [
+ {
+ "title": "A New book in existing category",
+ "lang": "English",
+ "authors": [
+ "Joe & Rahul"
+ ],
+ "pub_year": "2003",
+ "price": "2000"
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+} \ No newline at end of file