Hello folks,
I am trying to understand the method list_all (pat, cb)
and list_installed (pat, cb)
from luci.model.ipkg
.
According to the documentation:
- pat: Only find packages matching this pattern, nil lists all packages
- cb: Callback function invoked for each package, receives name, version and description as arguments.
In this case, how can I represent cb
for a JSON request?
My current JSON request body:
{
"method": "list_all",
"params": [
"nil", "nil"
]
}
JSON-RPC API Response:
{
"id": null,
"result": null,
"error": null
}
Thanks