File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,31 @@ environment:
232232 DEFAULT_RECIPIENTS : ' [ "user.id", "000", "001", "group.id" ] '
233233` ` `
234234
235+ #### Message Aliases
236+
237+ To improve compatibility with other services Secured Signal API provides aliases for the ` message` attribute by default:
238+
239+ | Alias | Priority |
240+ | ----------- | ----------- |
241+ | msg | 100 |
242+ | content | 99 |
243+ | description | 98 |
244+ | text | 20 |
245+ | body | 15 |
246+ | summary | 10 |
247+ | details | 9 |
248+ | payload | 2 |
249+ | data | 1 |
250+
251+ Secured Signal API will use the highest priority Message Alias to get the correct message from the Request Body.
252+
253+ If you are missing a Message Alias to have Secured Signal API integrated with a Service you can simply set `MESSAGE_ALIASES` in ENV :
254+
255+ ` ` ` yaml
256+ environment:
257+ MESSAGE_ALIASES: ' [{ "alias": "note", "priority": 4 }, { "alias": "test", "priority": 3 }] '
258+ ` ` `
259+
235260# # Contributing
236261
237262Found a bug? Want to change or add something?
You can’t perform that action at this time.
0 commit comments