This pull request (PR) achieves the following key changes for F1Hub and resolving issue #89 :
1. Updated Base URL for All Controllers
Base URL: All controllers now use the new base URL for the API: https://api.jolpi.ca/ergast/f1/. This is the updated endpoint after F1Hub's migration to a new API.
2. Controller-Specific URLs and Their Functions
Below is a detailed breakdown of each controller and the updated URLs used for specific functionalities:
MainCtrl
URL Utilized:
https://api.jolpi.ca/ergast/f1/current - This URL is used to retrieve data about the current F1 season.
ResultsCtrl
URL Utilized:
https://api.jolpi.ca/ergast/f1/current/circuits/{circuitId}/results/ - Used to retrieve the race results for a specific circuit in the current season.
https://api.jolpi.ca/ergast/f1/{season}/{round}/driverStandings - Retrieves the driver standings for the specified season and round.
https://api.jolpi.ca/ergast/f1/{season}/{round}/constructorStandings - Retrieves the constructor standings for the specified season and round.
QualiCtrl
URL Utilized:
https://api.jolpi.ca/ergast/f1/current/circuits/{circuitId}/qualifying - Used to fetch qualifying results for a specific circuit in the current season.
SprintCtrl
URL Utilized:
https://api.jolpi.ca/ergast/f1/current/circuits/{circuitId}/sprint - Used to retrieve the sprint race results for a specific circuit in the current season.
DriverCtrl
URL Utilized:
If no season or round is specified: https://api.jolpi.ca/ergast/f1/current/driverStandings - Fetches the current driver standings.
If season and round are provided: https://api.jolpi.ca/ergast/f1/{season}/{round}/driverStandings - Fetches driver standings for the given season and round.
ConstructorCtrl
URL Utilized:
If no season or round is specified: https://api.jolpi.ca/ergast/f1/current/constructorStandings - Fetches the current constructor standings.
If season and round are provided: https://api.jolpi.ca/ergast/f1/{season}/{round}/constructorStandings - Fetches constructor standings for the given season and round.
This pull request (PR) achieves the following key changes for F1Hub and resolving issue #89 :
1. Updated Base URL for All Controllers
https://api.jolpi.ca/ergast/f1/
. This is the updated endpoint after F1Hub's migration to a new API.2. Controller-Specific URLs and Their Functions
Below is a detailed breakdown of each controller and the updated URLs used for specific functionalities:
MainCtrl
https://api.jolpi.ca/ergast/f1/current
- This URL is used to retrieve data about the current F1 season.ResultsCtrl
https://api.jolpi.ca/ergast/f1/current/circuits/{circuitId}/results/
- Used to retrieve the race results for a specific circuit in the current season.https://api.jolpi.ca/ergast/f1/{season}/{round}/driverStandings
- Retrieves the driver standings for the specified season and round.https://api.jolpi.ca/ergast/f1/{season}/{round}/constructorStandings
- Retrieves the constructor standings for the specified season and round.QualiCtrl
https://api.jolpi.ca/ergast/f1/current/circuits/{circuitId}/qualifying
- Used to fetch qualifying results for a specific circuit in the current season.SprintCtrl
https://api.jolpi.ca/ergast/f1/current/circuits/{circuitId}/sprint
- Used to retrieve the sprint race results for a specific circuit in the current season.DriverCtrl
https://api.jolpi.ca/ergast/f1/current/driverStandings
- Fetches the current driver standings.https://api.jolpi.ca/ergast/f1/{season}/{round}/driverStandings
- Fetches driver standings for the given season and round.ConstructorCtrl
https://api.jolpi.ca/ergast/f1/current/constructorStandings
- Fetches the current constructor standings.https://api.jolpi.ca/ergast/f1/{season}/{round}/constructorStandings
- Fetches constructor standings for the given season and round.