Open nindaba opened 5 months ago
Trip Creation: Users can create trips by providing necessary details.
POST /api/trips
Trip Update: Users can update their trip details.
PUT /api/trips/{tripId}
Trip Cancellation: Users can cancel their trips.
DELETE /api/trips/{tripId}
Trip Search: Users can search for trips based on their destination and date.
GET /api/trips/search?from{from}=to={to}&date={date}
Get All Trips: Users can view all the trips available in the application.
GET /api/trips
Get Single Trip: Users can view the details of a specific trip by providing the trip ID.
GET /api/trips/{tripId}
{ "uid": "string", "price": "number", "userId": "string", "createdAt": "date", "updatedAt": "date", "from": { "country": "string", "city": "string" }, "to": { "country": "string", "city": "string" }, "departureDate": "date", "ArrivalDate": "date" }
Trip
Trip Creation: Users can create trips by providing necessary details.
POST /api/trips
Trip Update: Users can update their trip details.
PUT /api/trips/{tripId}
Trip Cancellation: Users can cancel their trips.
DELETE /api/trips/{tripId}
Trip Search: Users can search for trips based on their destination and date.
GET /api/trips/search?from{from}=to={to}&date={date}
Get All Trips: Users can view all the trips available in the application.
GET /api/trips
Get Single Trip: Users can view the details of a specific trip by providing the trip ID.
GET /api/trips/{tripId}