Yes I did. I got the rules with curl -d "{\"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"call\", \"params\": [\"a74c8e07646f0da2bfddce35bf3de1f3\", \"file\", \"exec\", {\"command\":\"cat\", \"params\": [\"/etc/config/firewall\"] } ] }" http://192.168.1.1/ubus
but I was hoping to get a prettier json
If I do something like:
curl -d "{\"jsonrpc\":\"2.0\", \"id\":1, \"method\":\"call\", \"params\":[\"a74c8e07646f0da2bfddce35bf3de1f3\", \"uci\", \"show\", { \"config\":\"firewall\" } ] }" https://192.168.1.1/ubus
I get :
{
"jsonrpc": "2.0",
"id": 1,
"result": [
3
]
}
I think I'm missing some parameters