Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions CorvallisBus.Core/Models/ServiceAlert.cs

This file was deleted.

1 change: 0 additions & 1 deletion CorvallisBus.Core/WebClients/ITransitClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ public interface ITransitClient
{
(BusSystemData data, List<string> errors) LoadTransitData();
Task<ConnexionzPlatformET?> GetEta(int platformTag);
Task<List<ServiceAlert>> GetServiceAlerts();
}
}
56 changes: 0 additions & 56 deletions CorvallisBus.Core/WebClients/ServiceAlertsClient.cs

This file was deleted.

2 changes: 0 additions & 2 deletions CorvallisBus.Core/WebClients/TransitClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,5 @@ public ServerBusSchedule CreateSchedule(

return result;
}

public Task<List<ServiceAlert>> GetServiceAlerts() => ServiceAlertsClient.GetServiceAlerts();
}
}
6 changes: 0 additions & 6 deletions CorvallisBus.Web/Controllers/TransitApiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,6 @@ public async Task<ActionResult> GetArrivalsSummary(string stopIds)
}

[HttpGet("service-alerts")]
public Task<List<ServiceAlert>> GetServiceAlerts()
{
return _client.GetServiceAlerts();
}

[HttpGet("service-alerts/html")]
public ActionResult GetServiceAlertsWebsite()
{
return Redirect("https://www.corvallisoregon.gov/news?field_microsite_tid=581");
Expand Down
46 changes: 1 addition & 45 deletions CorvallisBus.Web/wwwroot/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,32 +213,6 @@ paths:
items:
$ref: "#/definitions/RouteArrivalsSummary"
/service-alerts:
get:
operationId: getServiceAlerts
description: |
Gets service alerts from CTS which inform the user of holidays with no bus service, temporary route changes due to construction, etc.

Sample URL: https://corvallisb.us/api/service-alerts
responses:
200:
examples:
application/json:
- title: Holiday Service
publishDate: '2017-12-18T00:00:00-08:00'
link: 'https://www.corvallisoregon.gov/cts/page/holiday-service'
- title: Philomath Connection Offers Saturday Service
publishDate: '2017-12-12T00:00:00-08:00'
link: 'https://www.corvallisoregon.gov/cts/page/philomath-connection-offers-saturday-service'
- title: Upcoming Schedule for CTS and Night Owl
publishDate: '2017-11-29T00:00:00-08:00'
link: 'https://www.corvallisoregon.gov/cts/page/upcoming-schedule-cts-and-night-owl'

description: The service alerts.
schema:
type: array
items:
$ref: "#/definitions/ServiceAlert"
/service-alerts/html:
get:
operationId: getServiceAlertsWebsite
description: |
Expand Down Expand Up @@ -371,22 +345,4 @@ definitions:
type: string
scheduleSummary:
description: A summary of the rest of the day's arrivals.
type: string
ServiceAlert:
type: object
description: A posting in the service alerts feed which may indicate interruptions or changes in service.
required:
- title
- publishDate
- link
properties:
title:
description: The title of the posting.
type: string
publishDate:
description: The date of publication.
type: string
format: date
link:
type: string
format: url
type: string