Versions Compared

Key

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

...

For Field filtering we can use RESTConf "fields" option :

Check RESTConf fields filtering for examples on using filtering option on RESTConf.

...

GET multiple fields with filtering - http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/gnodeb:cells/cellinfolist=1?fields=cell-uuid;cell-id

...


Limiting subtree depth 

For Field filtering we can use RESTConf "depth" option for GET requests.

The "depth" query parameter is used to limit the depth of subtrees returned by the server.

Data nodes with a "depth" value greater than the "depth" parameter are not returned in a response for a GET method


e.g. - http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/gnodeb:cells?depth=3


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".

http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/gnodeb:cells/cellinfolist=1?fields=cell-uuid;cell-id&content=nonconfig&depth=1


Other available params :

Image Added

Decision

"rests" bundle supports MIME type "application/yang-data+json" and thus is chosen as the bundle to use.

It also supports actions.

Assumptions

...

Rests bundle is predeployed.

...