You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/projects/settings/project-apis.md
+57-2Lines changed: 57 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -351,13 +351,68 @@ curl -X POST \
351
351
352
352
Let’s walk through a practical example of updating an app state variable using the Project APIs.
353
353
354
+
:::info
355
+
You can download and use <a href="../../../../static/jsons/FlutterFlow_APIs.postman_collection.json" download><strong>Postman Collection</strong></a> to quickly test all FlutterFlow Project APIs with pre-filled headers, parameters, and sample requests.
356
+
:::
357
+
358
+
359
+
354
360
First, we use the `/listPartitionedFileNames` endpoint to check if the `app-state` file exists in the project. Once confirmed, we call the `/projectYamls` endpoint to download the YAMLfile. TheAPI returns a base64-encoded string representing a zip file, which we decode and download using tools like [Base64 to ZIP](https://b64encode.com/tools/base64-to-zip/).
355
361
356
-
![image]
362
+
<div style={{
363
+
position:'relative',
364
+
paddingBottom:'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
Next, we open the `app-state.yaml` file and update the `enableDarkMode` variable by setting its `persisted` value to `true`. We then convert the updated YAML into a properly escaped single line string and validate it using the `/validateProjectYaml`endpoint. If validation succeeds, we send the final update using the `/updateProjectYaml` endpoint.
359
389
360
-
![image]
390
+
391
+
<div style={{
392
+
position:'relative',
393
+
paddingBottom:'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
"description": "The FlutterFlow Project APIs allow you to programmatically read, write, and validate YAML configuration files for FlutterFlow projects through REST endpoints. Using these APIs, you can automate project management tasks, integrate continuous integration and delivery (CI/CD) workflows, and apply bulk configuration updates without manual interactions with the FlutterFlow user interface.",
0 commit comments