The samples allow for a basic webhook based automation that uses a single-page configuration to display a single section with a boolean toggle and a list of switches. The samples also show how to subscribe to / handle events for the switches.
- ASPNetCoreWebAPI
- ASP.NET Core App with a single controller that adds the common webhook handlers in Startup.cs
- AzureFunctionsApp
- Azure Functions app with a single controller that adds the common webhook handlers in FunctionsAppStartup.cs
- MyWebhookLib
- Common lib that has the common app logic for both apps. Both apps use AddMyWebhookService() to add all of the requisite webhook handlers and the common MyService to their service collections.
- scripts
- startngrok.cmd starts an ngrok tunnel to localhost on port 5000.