Backend Integration
-
Dependencies:
- Ensure the
dio
package 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
baseUrl
inApiClient
. - 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