Ask Your Question
0

How do i create inputs ( JSON or XML inputs) for the Rest API's for post and put methods in RESTconf UI page.. ?

asked 2015-08-17 05:30:29 -0700

balaodl gravatar image

HI,

How do i create inputs ( JSON or XML inputs) for the Rest API's for post and put methods in RESTconf UI page..

I am seeing lot of URI's like below:

post /operations/opendaylight-port-statistics:get-all-node-connectors-statistics

post /operations/opendaylight-port-statistics:get-node-connector-statistics

post /operations/sal-flow:add-flow

But i dont know what input and how should i give to make this post call succesful.

any ideas/suggestions will be of great!! thanks in advance!

Thanks, Bala

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-08-18 01:26:14 -0700

Dana gravatar image

Hi, those URLs map to RPCs. All of them are defined in YANG models. From the YANG model you can also deduce the XML inputs. Read RFC6020 how YANG syntax is mapped to XML. Usually also projects have sample inputs in their wiki. Some RPCs can be found herel.

edit flag offensive delete publish link more
0

answered 2015-08-18 21:48:57 -0700

balaodl gravatar image

Thanks Dana..

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

Question Tools

Follow
1 follower

Stats

Asked: 2015-08-17 05:30:29 -0700

Seen: 416 times

Last updated: Aug 18 '15