02 - APIs & Webhooks
The most common usecase for many is building APIs and Webhooks. The initial part of the tutorial will focus on this.
These can be built from existing endpoints, shell commands, scripts, files etc. and chained with storing to a database or being ingested by another endpoint etc.
As we step through, you will be naturally exposed to how workflows
, automations
and command
based utilities can be built.
Steps
1. HTTP GET API
In this simple example we will be creating a HTTP GET API where we will access the available query parameters. You may add or adjust the query parameters in the validation steps to see how the data is handled.
Deploy via Hosted / Managed
- Ensure you are logged into https://app.airpipe.io
- Click Deploy
to load the below example config into your account
- Alternatively, go to Configurations > Add New, and copy and paste the example
Deploy via Self Hosted / Unmanaged
- A
configs
directory should have been created automatically for you, else create one. - Copy the below example config into your
configs
directory, eg.configs/02-http-get.yml
- Stop/Start
airpipe
eg../airpipe server --api-key your-api-key --config-dir configs