Version 9 (modified by mvoncken, 15 years ago) (diff) |
---|
Webui JSON api
This is a design document, specs can and will change.
Full client api
- url : /json/rpc
- rpc-api : http://en.wikipedia.org/wiki/JSON-RPC#Version_1.0
- methods : http://dev.deluge-torrent.org/wiki/Development/UiClient#Remoteapi
added methods, json only
update_ui(keys ,filter_dict , cache_id = None )
Composite call. Goal : limit the number of ajax calls
input
keys: see get_torrent_status filter_dict: see label_get_filtered_ids # only effective if the label plugin is enabled. cache_id: # todo
output
{ "torrents": see get_torrent_status "filters": see label_get_filters "stats": see get_stats "cache_id":int # todo }
get_stats()
output
{ 'download_rate':float(), 'upload_rate':float(), 'max_download':float(), 'max_upload':float(), 'num_connections':int(), 'max_num_connections':int(), 'dht_nodes',int() }