initial commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
/// Chemins des endpoints REST de l'API Laverie v1.
|
||||
abstract final class ApiEndpoints {
|
||||
// Authentification utilisateur
|
||||
static const authRegister = '/auth/register';
|
||||
static const authLogin = '/auth/login';
|
||||
static const authRefresh = '/auth/refresh';
|
||||
static const authLogout = '/auth/logout';
|
||||
static const authMe = '/auth/me';
|
||||
|
||||
// Portefeuille
|
||||
static const wallet = '/wallet';
|
||||
static const walletTransactions = '/wallet/transactions';
|
||||
static const walletTopUpInitiate = '/wallet/top-up/initiate';
|
||||
static const walletTopUpConfirm = '/wallet/top-up/confirm';
|
||||
|
||||
// Établissements & machines
|
||||
static const establishments = '/establishments';
|
||||
static String establishment(String uuid) => '/establishments/$uuid';
|
||||
static String machine(String uuid) => '/machines/$uuid';
|
||||
static String machineAvailability(String uuid) => '/machines/$uuid/availability';
|
||||
static String machinePricing(String uuid) => '/machines/$uuid/pricing';
|
||||
|
||||
// Réservations
|
||||
static const bookings = '/bookings';
|
||||
static String booking(String uuid) => '/bookings/$uuid';
|
||||
static String bookingCancel(String uuid) => '/bookings/$uuid/cancel';
|
||||
|
||||
// Lavages
|
||||
static const washes = '/washes';
|
||||
static const washesStart = '/washes/start';
|
||||
static String wash(String uuid) => '/washes/$uuid';
|
||||
}
|
||||
Reference in New Issue
Block a user