docs: Add content table for build integration pages

This commit is contained in:
Faruk AYDIN
2022-11-08 20:12:25 +01:00
parent 47afd60ddf
commit c579eebd16
7 changed files with 98 additions and 0 deletions

View File

@@ -1,5 +1,19 @@
# Actions
:::info
The build integrations section is best understood when read from beginning to end. To get the most value out of it, start from the first page and read through page by page.
1. [Folder structure](/build-integrations/folder-structure)
2. [App](/build-integrations/app)
3. [Global variable](/build-integrations/global-variable)
4. [Auth](/build-integrations/auth)
5. [Triggers](/build-integrations/triggers)
6. [<mark>Actions</mark>](/build-integrations/actions)
7. [Examples](/build-integrations/examples)
:::
## Add actions to the app.
Open the thecatapi/index.ts file and add the highlighted lines for actions.

View File

@@ -1,5 +1,19 @@
# App
:::info
The build integrations section is best understood when read from beginning to end. To get the most value out of it, start from the first page and read through page by page.
1. [Folder structure](/build-integrations/folder-structure)
2. [<mark>App</mark>](/build-integrations/app)
3. [Global variable](/build-integrations/global-variable)
4. [Auth](/build-integrations/auth)
5. [Triggers](/build-integrations/triggers)
6. [Actions](/build-integrations/actions)
7. [Examples](/build-integrations/examples)
:::
Let's start building our first app by using [TheCatApi](https://thecatapi.com/) service. It's a service that provides cat images and allows you to vote or favorite a specific cat image. It's an excellent example to demonstrate how Automatisch works with an API that has authentication and data fetching with pagination.
We will build an app with the `Search cat images` trigger and `Mark the cat image as favorite` action. So we will learn how to build both triggers and actions.

View File

@@ -1,5 +1,19 @@
# Auth
:::info
The build integrations section is best understood when read from beginning to end. To get the most value out of it, start from the first page and read through page by page.
1. [Folder structure](/build-integrations/folder-structure)
2. [App](/build-integrations/app)
3. [Global variable](/build-integrations/global-variable)
4. [<mark>Auth</mark>](/build-integrations/auth)
5. [Triggers](/build-integrations/triggers)
6. [Actions](/build-integrations/actions)
7. [Examples](/build-integrations/examples)
:::
## Sign up for the cat API
Go to the [sign up page](https://thecatapi.com/signup) of the cat API and register your account. It allows you to have 10k requests per month with a free account. You will get an API key by email after the registration. We will use this API key for authentication later on.

View File

@@ -1,5 +1,19 @@
# Examples
:::info
The build integrations section is best understood when read from beginning to end. To get the most value out of it, start from the first page and read through page by page.
1. [Folder structure](/build-integrations/folder-structure)
2. [App](/build-integrations/app)
3. [Global variable](/build-integrations/global-variable)
4. [Auth](/build-integrations/auth)
5. [Triggers](/build-integrations/triggers)
6. [Actions](/build-integrations/actions)
7. [<mark>Examples</mark>](/build-integrations/examples)
:::
## Authentication
### 3-legged OAuth

View File

@@ -1,5 +1,19 @@
# Folder Structure
:::info
The build integrations section is best understood when read from beginning to end. To get the most value out of it, start from the first page and read through page by page.
1. [<mark>Folder structure</mark>](/build-integrations/folder-structure)
2. [App](/build-integrations/app)
3. [Global variable](/build-integrations/global-variable)
4. [Auth](/build-integrations/auth)
5. [Triggers](/build-integrations/triggers)
6. [Actions](/build-integrations/actions)
7. [Examples](/build-integrations/examples)
:::
:::warning
We will use the terms **integration** and **app** interchangeably in this document.
:::

View File

@@ -1,5 +1,19 @@
# Global Variable
:::info
The build integrations section is best understood when read from beginning to end. To get the most value out of it, start from the first page and read through page by page.
1. [Folder structure](/build-integrations/folder-structure)
2. [App](/build-integrations/app)
3. [<mark>Global variable</mark>](/build-integrations/global-variable)
4. [Auth](/build-integrations/auth)
5. [Triggers](/build-integrations/triggers)
6. [Actions](/build-integrations/actions)
7. [Examples](/build-integrations/examples)
:::
Before handling authentication and building a trigger and an action, it's better to explain the `global variable` concept in Automatisch. Automatisch provides you the global variable that you need to use with authentication, triggers, action, and basically all the stuff you will build for the integration.
The global variable is represented as `$` variable in the codebase, and it's a JSON object that contains the following properties:

View File

@@ -1,5 +1,19 @@
# Triggers
:::info
The build integrations section is best understood when read from beginning to end. To get the most value out of it, start from the first page and read through page by page.
1. [Folder structure](/build-integrations/folder-structure)
2. [App](/build-integrations/app)
3. [Global variable](/build-integrations/global-variable)
4. [Auth](/build-integrations/auth)
5. [<mark>Triggers</mark>](/build-integrations/triggers)
6. [Actions](/build-integrations/actions)
7. [Examples](/build-integrations/examples)
:::
## Add triggers to the app
Open the `thecatapi/index.ts` file and add the highlighted lines for triggers.