Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add event_time query parameter to events endpoint #140

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

jiffyclub
Copy link
Contributor

Explain pull request

The events/events endpoint currently has no documented way to indicate the time range for which data is being requested. Without a clear, documented way of requesting historical data implementers of CDS are likely to come up with myriad solutions of their own.

This adds an event_time query parameter to the API endpoint that takes the form of an ISO 8601 UTC hour YYYY-MM-DDTHH so that the user can request all events that occurred within that specific hour. This is the same format used for MDS events 1. Unlike in MDS this query parameter is optional and if not specified the API should return all events that occurred in the last 60 minutes. I'm also open to making the parameter required.

Is this a breaking change

  • Yes, breaking

Impacted Spec

  • Events

Additional context

Closes #107.

The events/events endpoint currently has no documented way to indicate
the time range for which data is being requested. This adds an
event_time query parameter to the API endpoint that takes the form
of an ISO 8601 UTC hour YYYY-MM-DDTHH so that the user can request
all events that occurred within that specific hour. This is the same
format used for MDS events [1].

[1]: https://github.com/openmobilityfoundation/mobility-data-specification/tree/2.0.1/provider#historical-events---query-parameters
@jiffyclub jiffyclub requested a review from a team as a code owner August 30, 2024 19:42
@CLAassistant
Copy link

CLAassistant commented Aug 30, 2024

CLA assistant check
All committers have signed the CLA.

@schnuerle schnuerle added this to the 1.1 milestone Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants