As a project I created a taxi service using microservices paradime.
| Entity | HTTP Method | Route | Description |
|---|---|---|---|
| Cars | GET |
/cars |
Retrieves all cars |
GET |
/car/{id} |
Retrieves a specific car by ID | |
DELETE |
/car/{id} |
Deletes a specific car by ID | |
PUT |
/car/{id} |
Updates a specific car by ID | |
POST |
/car |
Creates a new car | |
| Tour | GET |
/tour |
Retrieves all tours |
| Driver | GET |
/driver |
Retrieves all drivers |
GET |
/driver/{id} |
Retrieves a specific driver by ID |
The un autherized get request
Get by id
[ { "id": 1, "car": { "id": "676872a6ec2c6b76506df4d4", "plate": "ABC-123", "model": "I-series", "brand": "BMW", "odometer": 69 }, "driver": { "id": 1, "firstName": "Jan", "lastName": "Vertongen", "licenceNumber": "32178462", "profilePicture": "https://images.pexels.com/photos/1704488/pexels-photo-1704488.jpeg?cs=srgb&dl=pexels-sulimansallehi-1704488.jpg&fm=jpg" }, "name": "Mol to Geel", "price": 24.24 } ]
[
{
"id": 1,
"firstName": "Jan",
"lastName": "Vertongen",
"licenceNumber": "32178462",
"profilePicture": "https://images.pexels.com/photos/1704488/pexels-photo-1704488.jpeg?cs=srgb&dl=pexels-sulimansallehi-1704488.jpg&fm=jpg"
},
{
"id": 2,
"firstName": "Jane",
"lastName": "Tesla",
"licenceNumber": "24324242",
"profilePicture": "https://newprofilepic.photo-cdn.net//assets/images/article/profile.jpg?90af0c8"
}
]
get driver by id
{
"id": 2,
"firstName": "Jane",
"lastName": "Tesla",
"licenceNumber": "24324242",
"profilePicture": "https://newprofilepic.photo-cdn.net//assets/images/article/profile.jpg?90af0c8"
}








