With some tailf:actions sprinkled around the yang model, these go to the operations tree under restconf.
However a GET on /operations doesn’t show any of the available operations generated by these, they seem hidden by default? In the RESTCONF api I pretty much have to guess how to format the request. They work, but the paths have to be guessed based on knowledge of the yang model.
$ curl -su admin:admin http://localhost:8008/restconf/tailf/modules/example-jukebox/2016-08-15 |grep -A17 "rpc play"
rpc play {
description
"Control function for the jukebox player.";
input {
leaf playlist {
type string;
mandatory true;
description
"The playlist name.";
}
leaf song-number {
type uint32;
mandatory true;
description
"Song number in playlist to play.";
}
}
}