Base URI
The API resource contains the RESTCONF root resource for the RESTCONF datastore and operation resources. It is the top-level resource located at {+restconf} and has the media type "application/yang-data+xml" or "application/yang-data+json".
YANG tree diagram for an API resource:
+---- {+restconf}
+---- data
| ...
+---- operations?
| ...
+--ro yang-library-version string The
base URI for the RESTCONF API is : /restconf/. The base URI /restconf contains the child resources below. The YANG representation is:
$ curl https://10.176.156.34/restconf --insecure -u testuser:testpassword -H "Accept: application/xml" | xmllint --format - % Total % Received % Xferd
Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 323 0 323 0 0 2323 0 --:--:-- --:--:-- --:--:-- 2323 2016-06-21 $ curl
https://10.176.156.34/restconf --insecure -u testuser:testpassword | json_pp % Total % Received % Xferd Average Speed Time Time Time Current Dload
Upload Total Spent Left Speed 100 149 0 149 0 0 1006 0 --:--:-- --:--:-- --:--:-- 1000 { "ietf-restconf:restconf" : { "yumaworks-restconf:yang" : [ null ], "data" :
{}, "yang-library-version" : "2016-06-21", "operations" : { "yuma-system:no-op" : [ null ] } } }