Access Custom Webhooks
Feature Request
I have a back office system running to manage a variety of things including new feature requests. I have a very locked down forum from which users can make posts requesting and discussing new feature requests.
Describe the solution you'd like
I would like to be able to have a user start a discussion on Flarum and for that to call my private REST API to create a post in the back office system with a Subject being the Discussion Title and the Body as the body post.
If another user makes an update I'd like to send a link to that as an insight.
Ideally when the back office marks it as implemented I'd like to be able to change the discussion tag to include implemented, but that is a stretch target.
Describe alternatives you've considered
Manual processing.
I have code for datitisev/flarum-webhooks-pro which adds a custom adapter that essentially serializes events and sends them wherever. I haven't really looked at that in a while and my plan for it was to make it open source eventually, though I haven't had the time to do that. I will say, though, that implementation is way more complex than what you're asking. It would probably work if you have a route to process how this data would come. Though I can't give any timeline for when it'd exist.
It might be better to create the custom adapter yourself that specifically adapts to your needs. That way you'd have control over it and also probably have it working earlier.
In theory, one essentially just needs to create that adapter class, and then register it with
extend.php
(new FoFWebhooksExtender())
->adapter(Adapters\Custom\Adapter::class)
and fof-webhooks in composer.json's require (if not doing it through the forum's extend.php)