Skip to content

[FEATURE] Your title here #12

@zhenghaoyang24

Description

@zhenghaoyang24

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:

Image

keyword - gridPosition:

Image

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:[] 
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions