aboutsummaryrefslogtreecommitdiffhomepage
path: root/dummy-data
diff options
context:
space:
mode:
Diffstat (limited to 'dummy-data')
-rw-r--r--dummy-data/README.md13
-rw-r--r--dummy-data/qBittorrent/api/v2/torrents/info53
-rw-r--r--dummy-data/qBittorrent/api/v2/transfer/info10
3 files changed, 70 insertions, 6 deletions
diff --git a/dummy-data/README.md b/dummy-data/README.md
index eeff4ec..6db4712 100644
--- a/dummy-data/README.md
+++ b/dummy-data/README.md
@@ -1,15 +1,16 @@
1# Dummy data 1# Dummy data
2 2
3This directory content makes possible to test custom services cards or create a demo without actually running the service. 3This directory content makes possible to test custom services cards or create a demo without actually running the service.
4The principle is simple: save a sample output of the API used in the service in a static file in this directory. The path must be identical as the service endpoint to be used seamlessly. 4The principle is simple: save a sample output of the API used in the service in a static file in this directory. The path must be identical as the service endpoint to be used seamlessly.
5 5
6## How to add a new services sample: 6## How to add a new services sample
7 7
8- create a directory for your service, and any sub-folder existing in the service api path. 8- create a directory for your service, and any sub-folder existing in the service api path.
9- save the api output in a file named after the service endpoint. 9- save the api output in a file named after the service endpoint.
10 10
11Example: 11Example:
12``` 12
13```sh
13mkdir pihole 14mkdir pihole
14curl http://my-pihole.me/admin/api.php -o pihole/api.php # /admin is omited because for PiHole, the implementation expect it to be in the base url (`url` or `enpoint` property) 15curl http://my-pihole.me/admin/api.php -o pihole/api.php # /admin is omited because for PiHole, the implementation expect it to be in the base url (`url` or `endpoint` property)
15``` \ No newline at end of file 16```
diff --git a/dummy-data/qBittorrent/api/v2/torrents/info b/dummy-data/qBittorrent/api/v2/torrents/info
new file mode 100644
index 0000000..e1bc722
--- /dev/null
+++ b/dummy-data/qBittorrent/api/v2/torrents/info
@@ -0,0 +1,53 @@
1[
2 {
3 "added_on": 1666985518,
4 "amount_left": 0,
5 "auto_tmm": false,
6 "availability": -1,
7 "category": "",
8 "completed": 1474873344,
9 "completion_on": 1666985584,
10 "content_path": "/downloads/ubuntu-22.04.1-live-server-amd64.iso",
11 "dl_limit": -1,
12 "dlspeed": 0,
13 "download_path": "",
14 "downloaded": 1513976240,
15 "downloaded_session": 0,
16 "eta": 8640000,
17 "f_l_piece_prio": false,
18 "force_start": false,
19 "hash": "cf3ea75e2ebbd30e0da6e6e215e2226bf35f2e33",
20 "infohash_v1": "cf3ea75e2ebbd30e0da6e6e215e2226bf35f2e33",
21 "infohash_v2": "",
22 "last_activity": 1666985588,
23 "magnet_uri": "magnet:?xt=urn:btih:cf3ea75e2ebbd30e0da6e6e215e2226bf35f2e33&dn=ubuntu-22.04.1-live-server-amd64.iso&tr=https%3a%2f%2ftorrent.ubuntu.com%2fannounce&tr=https%3a%2f%2fipv6.torrent.ubuntu.com%2fannounce",
24 "max_ratio": 0,
25 "max_seeding_time": -1,
26 "name": "ubuntu-22.04.1-live-server-amd64.iso",
27 "num_complete": 0,
28 "num_incomplete": 583,
29 "num_leechs": 0,
30 "num_seeds": 0,
31 "priority": 0,
32 "progress": 1,
33 "ratio": 1.7163413343924075e-05,
34 "ratio_limit": -2,
35 "save_path": "/downloads/",
36 "seeding_time": 4,
37 "seeding_time_limit": -2,
38 "seen_complete": 1666985584,
39 "seq_dl": false,
40 "size": 1474873344,
41 "state": "pausedUP",
42 "super_seeding": false,
43 "tags": "",
44 "time_active": 69,
45 "total_size": 1474873344,
46 "tracker": "",
47 "trackers_count": 2,
48 "up_limit": -1,
49 "uploaded": 25985,
50 "uploaded_session": 0,
51 "upspeed": 0
52 }
53] \ No newline at end of file
diff --git a/dummy-data/qBittorrent/api/v2/transfer/info b/dummy-data/qBittorrent/api/v2/transfer/info
new file mode 100644
index 0000000..dd7b318
--- /dev/null
+++ b/dummy-data/qBittorrent/api/v2/transfer/info
@@ -0,0 +1,10 @@
1{
2 "connection_status": "connected",
3 "dht_nodes": 318,
4 "dl_info_data": 23481469329,
5 "dl_info_speed": 1234567,
6 "dl_rate_limit": 40960000,
7 "up_info_data": 1788370216,
8 "up_info_speed": 765432,
9 "up_rate_limit": 10547200
10} \ No newline at end of file