This project is very useful to me, thank you for open source.👏
But I still encountered some problems during use, especially the inconsistent format of API request results.
1
For example, in the results api, in the races of sprintRace ([year]/[round]/print/race), the grid keyword for each item is gridPosition, but in the results of races ([year]/[round]/race) it is grid, which requires me to handle this grid value separately.
keyword - grid:

keyword - gridPosition:

2
In addition, for example, in ([year]/[round]/fp1), there is a driverId in each item of races, but there is no driverId in [year]/[round]/face. Fortunately, there is a driverId in the driver.
3
At the same time, in the result API, to obtain results, each keyword is different. For example, sprint/qualy is sprintQualyResults, sprint/race is sprintAceResults, race is results, and fp1 is fp1Results. This makes it difficult to use different keywords for obtaining results for each different type of competition, and keyword judgment is required. I think the results API can be improved to the following format:
{
type: 'fp1' | 'fp2' .... | 'race'
results:[]
}
This project is very useful to me, thank you for open source.👏
But I still encountered some problems during use, especially the inconsistent format of API request results.
1
For example, in the results api, in the races of sprintRace ([year]/[round]/print/race), the grid keyword for each item is gridPosition, but in the results of races ([year]/[round]/race) it is grid, which requires me to handle this grid value separately.
keyword - grid:
keyword - gridPosition:
2
In addition, for example, in ([year]/[round]/fp1), there is a driverId in each item of races, but there is no driverId in [year]/[round]/face. Fortunately, there is a driverId in the driver.
3
At the same time, in the result API, to obtain results, each keyword is different. For example, sprint/qualy is sprintQualyResults, sprint/race is sprintAceResults, race is results, and fp1 is fp1Results. This makes it difficult to use different keywords for obtaining results for each different type of competition, and keyword judgment is required. I think the results API can be improved to the following format: