aboutsummaryrefslogtreecommitdiffstats
path: root/csit/data/ncmp/bookstorePatchExample.json
blob: 039ea4bcddf1ea088ff02cf54f329586a38a4576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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"
                  }
                ]
              }
            ]
          }
        }
      }
    ]
  }
}