Overview
The Drivers feature allows you to view the complete F1 2023 driver lineup, track their championship standings, and manage driver profiles. Drivers are ranked by total points accumulated across all races in the season.Viewing driver standings
The Drivers page displays all F1 drivers in a grid layout, sorted by their championship position based on total points earned.Driver information displayed
Each driver card shows:- Championship position - Current ranking in the standings
- Total points - Accumulated points from all races
- Driver name - Given name and family name
- Nationality - Country flag representation
- Permanent number - Unique race number for the driver
- Team affiliation - Current constructor team
- Driver photo - Profile image
Drivers are automatically sorted by total points in descending order, with the championship leader appearing first.
Driver data structure
The application fetches driver data from the/api/drivers endpoint, which includes:
Driver details
Click on any driver card to navigate to their detailed profile page, which shows:- Complete driver biography
- Detailed statistics and performance metrics
- Race-by-race results and points breakdown
- Historical data and achievements
Driver management (Admin only)
Driver management features are only available to authenticated admin users. A valid JWT token with admin privileges is required.
Create Driver
Add new drivers to the championship with complete profile information
Update Driver
Edit existing driver details including team affiliation and profile data
Delete Driver
Remove drivers from the championship database
Creating a driver
To create a new driver, you must provide:- Driver ID - Unique identifier (e.g., “max_verstappen”)
- Driver code - Three-letter abbreviation (e.g., “VER”)
- Permanent number - Race number
- Given name and Family name
- Date of birth
- Nationality
- Profile URL
- Driver image URL
- Team ID - Associated constructor
The create driver API endpoint validates your JWT token and checks for admin privileges before allowing the operation.
Points calculation
Driver total points are calculated by:- Fetching all race results for each driver
- Summing the points from each race finish
- Sorting drivers by total points in descending order
/api/drivers endpoint:
Authentication requirements
- Regular users
- Admin users
Regular users can:
- View all driver standings
- Access driver detail pages
- Browse driver statistics
- Filter and search drivers