]> git.immae.eu Git - github/bastienwirtz/homer.git/blob - dummy-data/README.md
qBittorrent service (#540)
[github/bastienwirtz/homer.git] / dummy-data / README.md
1 # Dummy data
2
3 This directory content makes possible to test custom services cards or create a demo without actually running the service.
4 The 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
6 ## How to add a new services sample
7
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.
10
11 Example:
12
13 ```sh
14 mkdir pihole
15 curl 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)
16 ```