Skip to content

Commit aa08cae

Browse files
authored
Merge branch 'main' into patch-1
2 parents 46c4cb2 + 2bc96c4 commit aa08cae

File tree

11 files changed

+166
-298
lines changed

11 files changed

+166
-298
lines changed

docs/ff-concepts/adding-customization/vscode-extension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ If you're using a different version of FlutterFlow, such as *Beta* or *Enterpris
238238
For example:
239239

240240
- For the **Beta** version, set the `flutterflow.urlOverride` value to `https://api-beta.flutterflow.io/v1`.
241-
- For the **Enterprise** version, set the `flutterflow.urlOverride` value to `https://api-enterprise-[region].flutterflow.io` (replace [region] with your specific region).
241+
- For the **Enterprise** version, set the `flutterflow.urlOverride` value to `https://api-enterprise-[region].flutterflow.io/v1` (replace [region] with your specific region).
242242

243243
<div style={{
244244
position: 'relative',

docs/ff-integrations/ads/admob.md

Lines changed: 89 additions & 258 deletions
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
46.3 KB
Loading

docs/ff-integrations/authentication/supabase-auth/auth-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Follow the steps below to add Email Login action:
3131
By using this action, you can provide your users with the flexibility to create their accounts in different ways, according to their preferences.
3232

3333
:::note
34-
As of now, we only support creating accounts with email and passwords.
34+
As of now, we support creating accounts with Email/Password and Google.
3535
:::
3636

3737
Follow the steps below to add email signup action:

docs/resources/control-flow/backend-logic/api/create-test-api-calls.md

Lines changed: 47 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,57 @@ sidebar_position: 2
88

99
# Create & Test API Call
1010

11-
On this page, you will learn how to [create](#creating-api-calls) and [test](#testing-api-calls) the API call.
11+
In this guide, you'll learn how to create and test API calls in FlutterFlow. Integrating API calls allows your app to interact with external services, bringing in real-time data and functionality that enhances your app's capabilities.
1212

13-
## Creating API calls
13+
## Create API Call
14+
To use an API in your app, you first need to create the API call in FlutterFlow.
1415

15-
To use an API in your app, first, you have to create the API Call.
16+
Simply select API Calls from the left navigation menu, click the **+ Add** button, and choose **Create API Call**. Enter an **API Call Name**, select the **Method Type** (GET, POST, DELETE, PUT, or PATCH), and input the API URL of the service you wish to access.
1617

17-
Follow the steps below to create an API Call:
18+
<div style={{
19+
position: 'relative',
20+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
21+
height: 0,
22+
width: '100%'
23+
}}>
24+
<iframe
25+
src="https://demo.arcade.software/JbgiAq8d2VzqYHuXH4DN?embed&show_copy_link=true"
26+
title=""
27+
style={{
28+
position: 'absolute',
29+
top: 0,
30+
left: 0,
31+
width: '100%',
32+
height: '100%',
33+
colorScheme: 'light'
34+
}}
35+
frameborder="0"
36+
loading="lazy"
37+
webkitAllowFullScreen
38+
mozAllowFullScreen
39+
allowFullScreen
40+
allow="clipboard-write">
41+
</iframe>
42+
</div>
43+
44+
<p></p>
45+
46+
:::tip[Method Types]
47+
The Method Type specifies the type of operation the API call will perform. Here’s a breakdown of common method types:
48+
49+
- **GET:** Retrieves data from the server.
50+
- **POST:** Sends data to create or update a resource.
51+
- **DELETE:** Removes a resource from the server.
52+
- **PUT:** Updates or creates a resource with full data.
53+
- **PATCH:** Partially updates a resource.
54+
:::
1855

19-
1. Select **API Calls** from the left [Navigation Menu](../../../../intro/ff-ui/builder.md#navigation-menu).
20-
2. Click on the **+ Add** button and select **Create API Call**.
21-
3. Enter the **API Call Name**.
22-
4. Select the **Method Type**: *GET, POST, DELETE, PUT, or PATCH*.
23-
5. Enter the **API URL** of the service you want to access.
56+
### Dynamic API URLs
2457

25-
:::note
2658
If you want to use a dynamic URL, for example, `<https://reqres.in/api/users/2>` where 2 is dynamic and `<https://reqres.in/api/users?page=5>` where 5 is dynamic:
2759

2860
1. Replace the hard-coded value with a meaningful name inside the brackets (e.g., from `https://reqres.in/api/users/2`to `https://reqres.in/api/users/[user_id]`).
2961
2. And then, [**create a new variable**](rest-api.md#creating-variables) with the same name you provided inside the brackets.
30-
:::
3162

3263
The further instructions are based on the **Method Type** you selected.
3364

@@ -164,35 +195,13 @@ com/embed/4cd816e67a044604b80fb83748312a03?sid=e4ffd651-f97c-4478-94a4-e81f0931e
164195

165196
<p></p>
166197

167-
## Trigger API calls [Action]
198+
## API Call [Action]
168199

169-
Using this action, you can trigger the API Call defined in your project.
200+
Once the API calls are defined in your FlutterFlow project, you can use them wherever needed.
170201

171-
<div style={{
172-
position: 'relative',
173-
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
174-
height: 0,
175-
width: '100%'}}>
176-
<iframe
177-
src="https://demo.arcade.software/gzZislYM72aLHNpjuVhU?embed&show_copy_link=true"
178-
title=""
179-
style={{
180-
position: 'absolute',
181-
top: 0,
182-
left: 0,
183-
width: '100%',
184-
height: '100%',
185-
colorScheme: 'light'
186-
}}
187-
frameborder="0"
188-
loading="lazy"
189-
webkitAllowFullScreen
190-
mozAllowFullScreen
191-
allowFullScreen
192-
allow="clipboard-write">
193-
</iframe>
194-
</div>
195-
<p></p>
202+
Open the Action Flow Editor on the widget where the API call should be triggered. After selecting the desired Action Trigger, search for "API Calls" in the Actions dropdown and select the API call you want to use.
203+
204+
![use-api-call.png](imgs/use-api-call.png)
196205

197206
:::tip
198207
You can also add the API Call as a [**Backend Query**](../backend-query/api-call-query.md) that gets triggered automatically when the page or widget is loaded on the screen.
248 KB
Loading

0 commit comments

Comments
 (0)