jolpica / jolpica-f1

Apache License 2.0
41 stars 1 forks source link

Incorrect behaviour of `drivers/` and `constructors/` filter in combination with standings endpoints #23

Closed theOehrly closed 5 months ago

theOehrly commented 5 months ago

Constructor Standings

The constructors/ filter has no effect. Results are returned for all constructors. Example http://api.jolpi.ca/ergast/f1/2023/constructors/alfa/constructorstandings.json

The same happens with the drivers/ filter. But Ergast does not support this filter at all in combination with the constructor standings. Instead it returns status 400 (Bad Request).

Driver Standings

The exact same problem occurs, with the only difference being that here the drivers/ filter should work while the constructors/ filter should not be supported.