-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from mdgspace/services
feat: add api service and repositories
- Loading branch information
Showing
76 changed files
with
1,480 additions
and
2,146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import 'package:appetizer/data/constants/env_config.dart'; | ||
|
||
class ApiEndpoints { | ||
static const String baseUrl = EnvironmentConfig.BASE_URL; | ||
|
||
static const String checkVersion = | ||
'/panel/version/expire/{platform}/{versionNumber}'; | ||
|
||
static const String coupon = '/api/coupon'; | ||
static const String couponWithId = '/api/coupon/{couponId}'; | ||
|
||
static const String submittedFeedback = '/api/feedback/all/'; | ||
static const String responseOfFeedback = '/api/feedback/response/list/'; | ||
static const String newFeedback = '/api/feedback/'; | ||
|
||
static const String remainingLeaves = '/api/leave/count/remaining/'; | ||
static const String getLeaves = '/api/leave/all/'; | ||
static const String check = '/api/leave/check/'; | ||
static const String leave = '/api/leave/'; | ||
static const String cancelLeave = '/api/leave/meal/{id}'; | ||
|
||
static const String weekMenuMultimessing = '/api/menu/week/v2/'; | ||
static const String weekMenuForYourMeals = '/api/menu/my_week/'; | ||
static const String weekMenu = '/api/menu/week/'; | ||
static const String dayMenu = '/api/menu/{week}/{dayOfWeek}'; | ||
|
||
// TODO: add multimessing endpoints | ||
|
||
static const String monthlyRebate = '/api/transaction/rebate/current/'; | ||
static const String yearlyRebate = '/api/transaction/list/expenses/'; | ||
static const String faqs = '/api/faqs/'; | ||
|
||
static const String login = '/api/user/login/'; | ||
static const String logout = '/api/user/logout/'; | ||
static const String user = '/api/user/me/'; | ||
static const String password = '/api/user/me/password/'; | ||
static const String resetpassword = '/api/user/me/password/reset/'; | ||
static const String oAuthRedirect = '/api/user/oauth/omniport/redirect/'; | ||
static const String oAuthComplete = '/api/user/oauth/complete/'; | ||
static const String notifications = '/api/user/message/list/'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.