Skip to content

Service Alerts API#8

Merged
ItsJamie9494 merged 6 commits into
mainfrom
service-alert-api
May 27, 2026
Merged

Service Alerts API#8
ItsJamie9494 merged 6 commits into
mainfrom
service-alert-api

Conversation

@ItsJamie9494
Copy link
Copy Markdown
Collaborator

No description provided.

Adjust Deserialization test to include duplicated translations, as this is a failure case when parsing into the model. Deserialization should succeed here as the standard says nothing about this case, but transforming to the exported model should fail, as there is no logical reason to include two translations for the same language code.
Add a Service Alerts API to retrieve live service alert data, and provide
a test to make sure this API provides expected values (mocking the network
request)
Add endpoint for getting service alerts within a TransitClient.
Adjust transit client construction to use IHttpClientFactory // DI,
allowing for mocking of the HTTP Client in tests
Rename Gtfs_RealtimeClient.cs to TransitClient.cs, test using TransitClient (Gtfs should be private to the library)
Transit clients that are not the main TransitClient class should be internal,
they should never be touched by the main app
@ItsJamie9494 ItsJamie9494 merged commit 0f40c26 into main May 27, 2026
1 check passed
@ItsJamie9494 ItsJamie9494 deleted the service-alert-api branch May 27, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant