Search code examples
opendaylight

How can I access the OpenDaylight Northbound REST API


I am trying to use OpenDaylight to communicate with network devices speaking NETCONF.

I have the newest release (NEON) with all NETCONF and RESTCONF features installed. I have tried several ways to access the northbound RESTCONF API. Unfortunately, neither dlux nor apiexplorer seem to work in the newest release.

When I try to access http://localhost:8181/apidoc/explorer or use restconf from APIs of former releases, I get 404 errors.

I am positive that ODL and restconf is running correctly, for I receive answers to my postman GET requests like

<errors xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf">
    <error>
        <error-type>protocol</error-type>
        <error-tag>data-missing</error-tag>
        <error-message>Mount point does not exist.</error-message>
    </error>
</errors>

Solution

  • The link http://localhost:8181/apidoc/explorer/index.html did the trick. I just had to add the "index.html" at the end. Now it works like a charm.