WebHook
The Parse platform provides an extensible mechanism to allow us to process business logic externally. This is where functions come in. This mechanism is called WebHook.
We may have functions running as external processes, outside the Parse platform, and use them in conjunction with Parse's WebHook to perform complex business logic. As in the previous example, we already have the Transfer class. We then define a WebHook for this class to call an external function every time, before each of the Transfer entities is saved. We specify a URL to a FaaS gateway for this WebHook. The HTTP POST method will be made to the specified URL with the JSON as its request body. The request body contains the data of the current Transfer entity.
A WebHook ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access