Expand description
Wrapper module around the Jolpica F1 API.
Jolpica F1 is an open source API for querying Formula 1 data, with backwards compatible endpoints for the now deprecated Ergast API. This module is a wrapper around the this API, with additional functionality such as rate limiting to comply with the Terms of Use, automatic handling of multi-page responses, handling HTTP errors and retries, configurable alternate servers, etc.
Re-exports§
pub use agent::Agent;pub use agent::AgentConfigs;pub use agent::MultiPageOption;pub use agent::RateLimiterOption;pub use resource::Filters;pub use resource::LapTimeFilters;pub use resource::PitStopFilters;pub use resource::Resource;pub use response::Payload;pub use response::Table;
Modules§
- agent
- An
Agent, and associated configuration options and utilities, for accessing the jolpica-f1 API for querying Formula 1 data. - api
- Contains constants and information about the jolpica-f1 API, e.g. base URL, rate limits, pagination, special values, etc.
- concat
- Functions to concatenate multi-page
Responses into a singleResponse, concatenating the underlyingTables,Payloads,Races, etc., and performing optional verifications. - get
- Functions for performing GET requests to the jolpica-f1
API, including multi-page requests, returning the JSON response(s) parsed into
Responses. - resource
- Types to identify various
Resources andFiltersthat can be requested from the jolpica-f1 API. - response
- Defines types that represent and can be used to deserialize JSON responses from the jolpica-f1 API.
- time
- Defines types, aliases, and parsing/deserialization functionality for time/date/duration concepts and formats used in the jolpica-f1 API.