Real-time truck tracking application API documentation
/api/trucks
Get all trucks
/api/trucks/:id
Get a specific truck by ID
/api/trucks
Create a new truck
/api/trucks/:id
Update a truck
/api/trucks/:id
Delete a truck (soft delete)
/api/trucks/:id/location
Update truck location
/api/trucks/:id/history
Get truck location history
/api/trucks/search
Search trucks by query and status
/api/users/register
Register a new user
/api/users/login
Login a user
/api/users/profile
Get user profile (requires authentication)
/api/users/profile
Update user profile (requires authentication)
/api/users
Get all users (admin only)
/api/users/:id
Delete a user (admin only)