Skip to main content
This is the legacy documentation for our original platform, Cades. Our platform has evolved significantly since then to offer both app and website creation capabilities. Find the new documentation here.

API Integration

Step 1: Network Layer Setup

Let’s create a dependency injection folder using get_it package to manage API instances and follow clean architecture principles. This centralized approach helps avoid duplicating API instances across the codebase.

Step 2: API Client Configuration

After setting up Dio and dependency injection, we’ll create a centralized API client class to handle all network requests efficiently and maintain clean architecture principles.

Step 3: First API Integration

Let’s now integrate our first API, with this prompt:

Step 4: Authentication Header Setup

Add authentication to API requests.

Step 5: Second API Integration



This will integrate the library api for the videos user has created with the existing UI.