Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-1586

Add support for persisting of top level list nodes

    XMLWordPrintable

Details

    • Story
    • Status: Closed
    • Medium
    • Resolution: Done
    • Montreal Release
    • Montreal Release
    • CPS-Core

    Description

      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": [
                 

      {                 "bookstore-name": "Books"             }

      ,
                 

      {                 "bookstore-name": "Stories"             }

              ]
          }
      }'

       

      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:

      1. Demo expected returns
      2. Update documentations to note supporting of top list elements

      Attachments

        Issue Links

          # Subject Branch Project Status CR V

          Activity

            People

              anupriya63 Rudrangi Anupriya
              lukegleeson Luke Gleeson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: