The original post: /r/nginx by /u/YogurtclosetDouble50 on 2024-07-14 18:15:20.
Hi all, have stepped back into development in my free time after leaving the career over a decade ago. Back then the stuff I was working on didn’t use webhooks in any way so I’m totally unfamiliar with them.
I’ve been reading various articles online but not sure if I understand how they would work for my application.
I am currently running an Apache server (although I’m also running it on nginx to get familiar with that server as well). PHP backend serving html which is then interacted with by the user with a fair bit of jquery (planning on moving to vue once I’ve got my head round it).
The basic idea is that the page loads up a bunch of appointments and displays them as a grid. This content is pulled from a REST API from a patient management cloud system.
The page refreshes every 10 minutes as the bookings change regularly but not enough to warrant constant updates
What would be useful though is the api that the patient management system has also has webhooks that can be used when a diagnostic imaging request is updated or created (diagnosticimagingworklist_id). The docs for the system state “each of the hooks can have a different (or same) URL address, to which the system sends the hook when triggered by the event”. This is the one bit of info that would be hugely helpful if any changes made were apparent on my system immediately, rather than waiting for a refresh.
So from what I understand, some of the config needs to be done on the management system. That’s fine. But where do the urls come from? Is this something I need to configure in Apache/Nginx? And when these communicate, how is that then reflected on the front end?
I realise these may be quite basic questions but nothing I’ve read so far has got the concept into my head as to how this would work for my setup.