|
If the config statement of top container node or top list node in yang file is false, there should be not such restful apis of posting, getting, putting or deleting config for this node.
As we know from rfc 6020, if config statement of data schema node is false, the definition represents state data. Data nodes representing state data will be part of the reply to a <get>, but not to a <get-config> request, and cannot be sent in a <copy-config> or <edit-config> request.
Take ietf-netconf-monitoring.yang for example. The top container node is netconf-state, and its config statement is false. This container node represents state data, so the following restful apis listed on apidoc should not exist:
POST /config/
GET /config/ietf-netconf-monitoring:netconf-state/
PUT /config/ietf-netconf-monitoring:netconf-state/
DELETE /config/ietf-netconf-monitoring:netconf-state/
POST /config/ietf-netconf-monitoring:netconf-state/
|