Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


Java application to integrate with opendaylight

asked 2015-02-19 05:13:46 -0700

anonymous user


I am trying to create a java application in netbeans get some statistics from opendaylight through REST. This application is completely external to opendaylight. Can some one tell me where are the REST URLs listed in opendaylight? Secondly Do I have to parse the json response and convert it into my own objects or are there any libraries( not JSON libraries) specific to opendaylight that I could use ?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-02-19 10:24:23 -0700

B.Cogan gravatar image

updated 2015-02-19 10:29:50 -0700

I'm currently doing a similar project myself. If you're running Helium Karaf, the REST API is dynamically generated at run time, and can be viewed at http://localhost:8181/apidoc/explorer/index.html (replacing localhost with your controller IP)

As for the JSON responses I am parsing the information I want/generating requests into my own objects (if there are ODL specific libraries out the I might explode...!). For it I'm using Jackson and Json.simple.

edit flag offensive delete publish link more


Thanks Cogan. I am using Hydrogen release. So what would be the URL for API info?

Anbu ( 2015-03-02 03:27:05 -0700 )edit

Hydrogen uses the AD-SAL and the documentation can be found here . However I would recommend you use Helium instead, I believe there are very few people still using Hydrogen so help will be hard to find.

B.Cogan ( 2015-03-04 08:44:54 -0700 )edit

answered 2015-03-04 13:16:41 -0700

rolecram gravatar image

Hi, For JSON I use the library: jettison-1.3.3.jar

it is very simple to use. you can create a JSON object, JSON array, etc. and create it from the response of ODL.

Regards, marcelo

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools



Asked: 2015-02-19 05:13:46 -0700

Seen: 623 times

Last updated: Mar 04 '15