Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If the "fields" parameter is used to select descendant data nodes, then these nodes and all of their ancestor nodes have a "depth" value of "1".



Note: Depth of 0 will result in a 400 (Bad Request)

...

Interaction Between Fields & Depth Parameters

...

http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/turing-machine:turing-machine/transition-function?fields=delta/output/state&depth=1


Note: Depth can be any value .> 0


JSON Viewer
width400
height350
{
    "transition-function": {
        "delta": [
            {
                "output": {
                    "state": 1
                }
            },
            {
                "output": {
                    "state": 3
                }
            },
            {},
            {
                "output": {
                    "state": 4
                }
            },
            {},
            {
                "output": {
                    "state": 2
                }
            },
            {}
        ]
    }
}



Questions

...

QuestionAnswer
When field function is used to list attributes in child will the parent still be part of output? 


...