aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/configuration.md
diff options
context:
space:
mode:
authorluixal <luixal@gmail.com>2021-01-04 09:43:58 +0100
committerluixal <luixal@gmail.com>2021-01-04 09:43:58 +0100
commit6d29bc27e78bc549479cbbc203c683137ace9d48 (patch)
tree29e7de508e38c4f01706e81e8176390e70e3ba0d /docs/configuration.md
parent3786f80dae2df7780d19ba8ffd9374ef3c2fc30f (diff)
downloadhomer-6d29bc27e78bc549479cbbc203c683137ace9d48.tar.gz
homer-6d29bc27e78bc549479cbbc203c683137ace9d48.tar.zst
homer-6d29bc27e78bc549479cbbc203c683137ace9d48.zip
Adds mapping remote field to Homer expected ones when loading message from url
Diffstat (limited to 'docs/configuration.md')
-rw-r--r--docs/configuration.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/configuration.md b/docs/configuration.md
index a43d7f1..93fa898 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -66,6 +66,15 @@ colors:
66# Optional message 66# Optional message
67message: 67message:
68 # url: "https://<my-api-endpoint>" # Can fetch information from an endpoint to override value below. 68 # url: "https://<my-api-endpoint>" # Can fetch information from an endpoint to override value below.
69 # mapping: # allows to map fields from the remote format to the one expected by Homer
70 # title: 'id' # use value from field 'id' as title
71 # content: 'value' # value from field 'value' as content
72 #
73 # Real example using chucknorris.io for showing Chuck Norris facts as messages:
74 # url: https://api.chucknorris.io/jokes/random
75 # mapping:
76 # title: 'id'
77 # content: 'value'
69 style: "is-warning" 78 style: "is-warning"
70 title: "Optional message!" 79 title: "Optional message!"
71 icon: "fa fa-exclamation-triangle" 80 icon: "fa fa-exclamation-triangle"