Kim Alvefur <zash@zash.se> [Sat, 09 Apr 2022 00:43:18 +0200] rev 4925
mod_rest: Improve logging of results from callback startup probe
Especially interested in logging 500 status codes and their errors, to
diagnose problems with the callback API.
Kim Alvefur <zash@zash.se> [Sat, 09 Apr 2022 00:41:18 +0200] rev 4924
mod_rest: Support parameters in callback URL
E.g.
rest_callback_url = "http://myapi.example:5000/api/{kind}/{type}"
which results in e.g. requests to /api/message/chat
Allows using path routing in web frameworks for dispatch instead of
having to pick apart the payload to further dispatch it.
Kim Alvefur <zash@zash.se> [Sat, 09 Apr 2022 00:37:55 +0200] rev 4923
mod_rest/README: Mention the OPTIONS probe fired at the callback
... in passing. Should be documented better. But not this day!
This day, I commit features!
Kim Alvefur <zash@zash.se> [Thu, 07 Apr 2022 17:49:08 +0200] rev 4922
mod_rest: Improve error handling during format mapping
Prevents e.g. a nil, error return going directly into e.g. json
encoding, resulting in "null" being returned.
Further handling improvements down the line is needed.
Kim Alvefur <zash@zash.se> [Thu, 07 Apr 2022 17:48:08 +0200] rev 4921
mod_rest: Catch and coerce errors in echo endpoint
This should ensure problems in encode() are reported back
Kim Alvefur <zash@zash.se> [Thu, 07 Apr 2022 15:39:57 +0200] rev 4920
mod_rest: Move most of XEP-0432 handling into JSON mapping schema
The pre- and post-processing is still needed to encode/decode the JSON
since util.datamapper can't (currently) do this.
Kim Alvefur <zash@zash.se> [Thu, 07 Apr 2022 15:39:11 +0200] rev 4919
mod_rest/jsonmap: Fix indentation
Kim Alvefur <zash@zash.se> [Mon, 04 Apr 2022 17:50:24 +0200] rev 4918
mod_conversejs: Bump Copyright year
Mostly to trigger a rebuild of the .rock
Kim Alvefur <zash@zash.se> [Mon, 04 Apr 2022 17:48:34 +0200] rev 4917
mod_conversejs: Remove plugin installer dependency on mod_bookmarks
It's available with Prosody 0.12+ already, 0.11 has no installer.
Kim Alvefur <zash@zash.se> [Wed, 30 Mar 2022 17:52:41 +0200] rev 4916
mod_register_web: Include HTML templates in rock (thanks unbunt)
Makes the module usable with the new plugin installer in Prosody 0.12