You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2024. It is now read-only.
Pooja Shah edited this page Apr 11, 2014
·
3 revisions
The JSON RPC API documentation mentions a number of LUCI functions. It appears that all those functions are exposed since it is mentioned in the documentation but only the functions exposed by the libraries are accessible via the API.
The libraries currently exposed are in rpc.lua and are as follows:
uci
fs
sys
ipkg
auth
Only methods within these libraries are accessible via
/cgi-bin/luci/rpc/LIBRARY?auth=TOKEN
In order to expand the JSON RPC API, we can add entries and methods in rpc.lua. This will expose them as an API and we can have custom methods.