Version 10 (modified by mvoncken, 16 years ago) (diff)

--

Development

Webui JSON api

This is a design document, specs can and will change.

Full client api

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

returns:

{
    "torrents": see get_torrent_status
    "filters": see label_get_filters
    "stats": see get_stats
    "cache_id":int # todo
}

get_stats()

returns:

{
'download_rate':float(),
'upload_rate':float(),
'max_download':float(),
'max_upload':float(),
'num_connections':int(),
'max_num_connections':int(),
'dht_nodes',int()
}