You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Full stack with Docker Compose
docker-compose up -d
# Individual servicecd driver-service && mvn spring-boot:run
# Kubernetes
kubectl apply -f k8s/namespace.yaml
kubectl apply -f k8s/infra.yaml
kubectl apply -f k8s/deployments.yaml
API Endpoints
Rider flow
POST /api/riders # Register rider
PUT /api/riders/{id}/payment-method # Set payment method
POST /api/trips # Request trip
GET /api/eta/estimate?originLat=... # Get fare + ETA estimate
WS /ws/notifications # Subscribe to real-time updates
WS /ws/location → /topic/trip/{id}/location # Track driver
Driver flow
POST /api/drivers # Register driver
PATCH /api/drivers/{id}/online # Go online
PUT /api/drivers/{id}/location # Push location update
POST /api/drivers/{id}/trips/{id}/accept # Accept trip offer
POST /api/drivers/{id}/trips/{id}/decline
PATCH /api/trips/{id}/status # Update trip status
Trip lifecycle
POST /api/trips # Create (REQUESTED)
PATCH /api/trips/{id}/status {"status":"DRIVER_ARRIVED"}
PATCH /api/trips/{id}/status {"status":"IN_PROGRESS"}
PATCH /api/trips/{id}/status {"status":"PAYMENT_PENDING"}
PATCH /api/trips/{id}/status {"status":"COMPLETED"}
POST /api/trips/{id}/cancel
POST /api/trips/{id}/rate