aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2022-10-11 19:19:50 +0200
committerBastien Wirtz <bastien.wirtz@gmail.com>2022-10-11 19:19:50 +0200
commit0a03fcd9cd508514a6e2d5e3a6bb62bae6252331 (patch)
treebc82d54771d5181bd1e4c49f1259f43e40397976
parent73a2a4aa76e371f7207a94f3c78cb2070ab95650 (diff)
downloadhomer-0a03fcd9cd508514a6e2d5e3a6bb62bae6252331.tar.gz
homer-0a03fcd9cd508514a6e2d5e3a6bb62bae6252331.tar.zst
homer-0a03fcd9cd508514a6e2d5e3a6bb62bae6252331.zip
Docs for dummy data
-rw-r--r--dummy-data/README.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/dummy-data/README.md b/dummy-data/README.md
new file mode 100644
index 0000000..deed875
--- /dev/null
+++ b/dummy-data/README.md
@@ -0,0 +1,15 @@
1# Dummy data
2
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.
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
11Example:
12```
13mkdir pihole
14curl http://my-pihile.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)
15``` \ No newline at end of file