إنتقل إلى المحتوى الرئيسي

نقاط النهاية

قائمة شاملة بجميع مسارات API المتاحة.

المدن​

MethodEndpointالوصفAuth
GET/api/citiesقائمة المدن❌

المسارات​

MethodEndpointالوصفAuth
GET/api/routesجميع المسارات❌
GET/api/routes/popularالأكثر شعبية❌

الرحلات​

MethodEndpointالوصفAuth
GET/api/tripsالبحث عن رحلات❌
GET/api/trips/:idتفاصيل رحلة❌
GET/api/trips/:id/seatsالمقاعد المتاحة❌

الحجوزات​

MethodEndpointالوصفAuth
POST/api/bookingsإنشاء حجز✅
GET/api/bookingsحجوزاتي✅
GET/api/bookings/:idتفاصيل حجز✅
PATCH/api/bookings/:idتعديل/إلغاء✅

الملف الشخصي​

MethodEndpointالوصفAuth
GET/api/profileبيانات المستخدم✅
PATCH/api/profileتحديث البيانات✅

الأقسام​