Replies: 2 comments
-
The custom api widget does not support passing in data for the body of the request |
Beta Was this translation helpful? Give feedback.
0 replies
-
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking to implement additional widgets for a Mikrotik router using the Custom API and mapping.
I think can send the router this REST API command:
curl -k -u USERNAME:PASSWORD https://172.16.1.1/rest/interface/monitor-traffic --data '{"interface": "pppoe-out1", "duration": "1s", ".proplist": ["name","rx-bits-per-second","tx-bits-per-second"]}' -H "content-type: application/json"
which returns the following:
[{".section":"0","name":"pppoe-out1","rx-bits-per-second":"66768","tx-bits-per-second":"22696"}]
or, reformatted:
I believe the proper widget configuration equivalent to the above
curl
looks something like:I've tried a few things for
mappings:
to no avail, including the following:Can anyone help shed some light on what I might be doing wrong? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions