...
Entity | Description |
---|
Dataspace Name | CPS-Admin |
Anchor Name | cps-notification-subscription |
schema set | cps-notification-subscription |
cps-notification-subscriptions@2024-06-18.yang |
Code Block |
---|
| module subscription {
yang-version 1.1;
namespace "org:onap:ccsdk:sample";
prefix notification-subscription;
revision "2024-06-18" {
description
"Sample Model";
}
container cps-notification {
list dataspaces {
key "name"
leaf name {
type string
}
list anchors {
.
key "name"
leaf name {
type string
}
list xpaths {
key "xpath"
leaf xpath {
type string
}
}
}
}
}
} |
Code Block |
---|
title | JSON payload |
---|
collapse | true |
---|
| {
"notification-subscription": {
"dataspaces": [
{
"name": "dataspace01"
},
{
"name": "dataspace02",
"anchors": [
{
"name": "anchor01"
},
{
"name": "anchor02"
}
]
},
{
"name": "dataspace03",
"anchors": [
{
"name": "anchor01",
"xpaths" : [
{
. "xpath": "/bookstore/categories[@code='01']"
},
{
"xpath": "/bookstore/categories[@code='02']"
}
]
}
]
}
]
}
} |
|
When Notification is subscribed for anchor id "28", fragment table will have below entry
...