Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
api_endpoints.dart
Go to the documentation of this file.
1import 'package:connect/core/config/environment_config.dart';
2
3abstract class ApiEndpoints {
4 //alias
5 static const String authAlias = 'authentification';
6 static const String collectionAlias = 'collection';
7
8 //no params links
9 static const String loginPath = 'auth/login';
10 static const String videoUrlPath = 'videoUrl';
11 static const String sliderImagesPath = 'sliderImages';
12 static const String faq = 'faq';
13 static const String listProposedTimePath = 'listProposedTime';
14 static const String updateCollectionPath = 'updateCollection';
15 static const String createCollectionPath = 'createCollection';
16
17 //params with link
18 static listCollectionPointsPath(String param) =>
19 'listCollectionPoints/$param';
20 static retrieveOnGoingCollections(String param) =>
21 'retrieveCollections/$param/ongoing';
22 static retrieveDoneCollections(String param) =>
23 'retrieveCollections/$param/done';
25 'environmental/dashboard/$partnerId';
26 static dashboardPath(String partnerId) => 'dashboard/$partnerId';
27 static getNotifications(String userId) => 'notification/$userId';
28 static getprofile(String param) => 'userDetails/$param';
29
30 //url builder
31 static String buildUrl(String path, bool? isAuthUrl) {
32 String url =
33 "${EnvironmentConfig.apiBaseUrl}${isAuthUrl == true ? authAlias : collectionAlias}/$path";
34 return url;
35 }
36}
static listCollectionPointsPath(String param)
static const String loginPath
static const String createCollectionPath
static const String listProposedTimePath
static dashboardPath(String partnerId)
static const String videoUrlPath
static retrieveDoneCollections(String param)
static const String authAlias
static getprofile(String param)
static const String faq
static const String collectionAlias
static const String updateCollectionPath
static environmentalDashboardPath(String partnerId)
static String buildUrl(String path, bool? isAuthUrl)
static const String sliderImagesPath
static getNotifications(String userId)
static retrieveOnGoingCollections(String param)
final num partnerId