Create the first secure REST API endpoint (POST /api/v1/telematics) for partners to push their live truck GPS data. The endpoint must validate the incoming data (e.g., check for required fields like truck_id, lat, lng) and require API key authentication.
Suggestions: Use Pydantic for data validation in FastAPI. Store API keys securely using a secret management service.
Create the first secure REST API endpoint (POST /api/v1/telematics) for partners to push their live truck GPS data. The endpoint must validate the incoming data (e.g., check for required fields like truck_id, lat, lng) and require API key authentication.
Suggestions: Use Pydantic for data validation in FastAPI. Store API keys securely using a secret management service.