Invoking OpenFaaS serverless functions from Siri

With the advent of iOS 12, the Workflow app has been replaced with Shortcuts which is the new app for creating custom shortcuts. In iOS 12, they can also be triggered by custom phrases in Siri. I wanted to see what Shortcuts is capable of doing so I challenged myself: Create a shortcut which allows the user to select a function from an OpenFaaS instance and run it with custom input I wasn't too sure where to start, but opted to go with retrieving the list of functions from an instance first. This is fairly easy as OpenFaaS exposes gateway:8080/system/functions for getting a list of functions and their statuses. The next step was to figure out how continue...