Backend Integration
-
Dependencies:
- Ensure the
diopackage is added to yourpubspec.yaml.
- Ensure the
-
Code Integration:
- Backend API calls are managed using Dio in
lib/core/api/api_client.dart. - Set the
baseUrlinApiClient. - Use
ApiClient().get(endpoint)with optional query parameters when needed. - Use
ApiClient().post(endpoint, body). - Use
ApiClient().put(endpoint, body). - Use
ApiClient().delete(endpoint).
- Backend API calls are managed using Dio in