Seemy is a platform that puts in contact people who has sports & luxury cars with those who want to rent them for a few days. Think about it as a 'Getaround' app, but only focused on high-end cars.
| Method | Path | Description | Body |
|---|---|---|---|
| GET | /cars |
list all cars | |
| POST | /cars |
add a car | |
| GET | /cars/:id |
get a car | |
| PUT | /cars/:id |
update a car | |
| DELETE | /cars/:id |
delete a car | |
| GET | /driver/:id |
see driver profile | |
| PUT | /driver/:id |
edit driver profile |
| Method | Path | Description | Body |
|---|---|---|---|
| GET | /whoami |
who am i | |
| POST | /signup |
signup a user | { email, password } |
| POST | /login |
login a user | { email, password } |
| GET | /logout |
logout session |
| Method | Path | Description | Body |
|---|---|---|---|
| GET | /cars/:id/book |
book a car | |
| POST | /cars/:id/book |
book a car |
User model
{
firstName: String,
lastName: String,
email: String,
hashedPassword: String,
profilePhoto: String,
mobileNumber: Number,
}Car model
{
location: {
streetAdress: String,
city: String,
province: String,
postalCode: Number,
}
carSpecs: {
year: Number,
make: String,
model: String,
odometer: Number,
}
transmission: String;
availability: {
advanceNoticeHours: Number,
maxDurationDays: Number,
}
image: String,
description: String,
licensePlate: String,
dailyPrice: Number,
owner: ObjectId<User>,
}Review model
{
carId: ObjectId<Car>,
content: String,
rating: Number,
publisherId: ObjectId<User>,
}