docs: update OpenAPI spec for Infobus API #26#54
Open
raguerobermudez wants to merge 1 commit intomainfrom
Open
docs: update OpenAPI spec for Infobus API #26#54raguerobermudez wants to merge 1 commit intomainfrom
raguerobermudez wants to merge 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates the OpenAPI specification in
datahub.yml. The specification now includes the necessary endpoints for data consumption by external services.GTFS Schedule & Real-Time Endpoints
The specification now provides full coverage for both static and live transit data:
GTFS Schedule: Documented standard tables, including providers, agencies, routes, and stops.
GTFS Real-Time (RT): Enriched schemas for core live endpoints:
next_tripsandnext_stops: Arrival predictions and ETAs.trip_updates: Real-time status of active trips.vehicle_positions: Live geographic coordinates of the fleet.service_alerts: Communication of service disruptions and detours.External & Complementary Endpoints
The API scope has been expanded to include external data modules:
POST /user-reportsendpoint to receive incident data from users and agents.Standardization & Architecture
components/schemasandcomponents/parametersto ensure consistency and reusability.limit,offset, andorderingparameters across all collection endpoints.occupancy_status, confidence levels, and data source to provide higher data granularity.Privacy & Security (Privacy by Design)
user_nameanduser_emailfields inuser_reportshave been marked as deprecated and optional to prioritize user anonymity.ApiKeyAuth(header-based) andBearerAuth.POSTmethods (write operations) now strictly require an API Key to prevent unauthorized data injection or spam.