RESTconf Operations with curl

430 views Asked by At

I am trying to do GET, DELETE and PUT operations on a OpenDaylight Database. On my ubuntu 14.04 with OpenDaylight 3.0.3, I used curl out of the terminal:

GET works pretty well with

curl -u admin:admin -X GET http://localhost:8181/restconf/config/ModulName:Node

PUT also works fine with

curl -u admin:admin -H "Content-Type:application/json" -X PUT -d '{"Module":
{"Node":[
   {"type":"value"
   },
   {"type":"value"
   }
  ]
 }
}' http://localhost:8181/restconf/config/Module

But I have had a hard time trying to do DELETE operations or reading a single parameter. Is there a way do achieve this with curl?

0

There are 0 answers