-
Story
-
Resolution: Done
-
Medium
-
Montreal Release
Persisting a list element to a parent list
Sample data:
Sample return:
Analysis:
Curl commands:
curl --location --request POST 'http://localhost:8883/cps/api/v2/dataspaces?dataspace-name=my-store' \
--header 'Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=' \
--header 'Cookie: JSESSIONID=node01bdg502yw663e1kgvpn7a3p0yu0.node0'
curl --location --request POST 'http://localhost:8883/cps/api/v1/dataspaces/my-store/schema-sets?schema-set-name=stores-module' \
--header 'Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=' \
--header 'Cookie: JSESSIONID=node01bdg502yw663e1kgvpn7a3p0yu0.node0' \
--form 'file=@"/C:/Users/LukeGleeson/Documents/bookstoreTopList.yang"'
curl --location --request POST 'http://localhost:8883/cps/api/v1/dataspaces/my-store/anchors/bookstore-anchor-list/nodes' \
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=node01bdg502yw663e1kgvpn7a3p0yu0.node0' \
--data-raw '{
"bookstore":{
"bookstores": [
,
]
}
}'
curl --location --request GET 'http://localhost:8883/cps/api/v2/dataspaces/my-store/anchors/bookstore-anchor/node?xpath=/&descendants=5' \
--header 'Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=' \
--header 'Cookie: JSESSIONID=node01bdg502yw663e1kgvpn7a3p0yu0.node0'
A/C:
- As implementation proposal page is submitted - (https://jira.onap.org/browse/CPS-767)
- Demo expected returns
- Update documentations to note supporting of top list elements