Root resource discovery

The RESTCONF client can determine the root of the RESTCONF API by sending the request to the server using the URI /.well-known/host-meta as follows:

curl -v -X GET -u admin:password https://<>/.well-known/host-meta

The following is the response of the request.

<data xmlns=‘http://docs.oasis-open.org/ns/xri/xrd-1.0‘>
 <Link rel='restconf' href='/restconf'/>
</data>

The response contains the "restconf" link relation returned by the server. The client can use the path "/restconf" as the RESTCONF entry point, prepend it to any subsequent request to a RESTCONF resource.