[netconf-dev] Looking for clarification on rests/data/ or /rests/operations/ for action operations.

Robert Varga

On 18/06/2019 12:15, Ajay Deep Singh wrote:
Hi All,
Hey Ajay,

Looking for clarification on rests/*data*/ or /rests/*operations*/ for
action operations.


Added Yang 1.1 Model with action to Odl and can see all the Action is
modeled in rest endpoint as rests/*data*/  is that correct ?  my guess
it’s not.
No need for guessing, https://tools.ietf.org/html/rfc8040#section-3.6 is
rather explicit:

An action is invoked as:

POST {+restconf}/data/<data-resource-identifier>/<action>

where <data-resource-identifier> contains the path to the data node
where the action is defined, and <action> is the name of the action.