Name: onebusaway-deep-links
Owner: OneBusAway
Description: A web app with a URL pattern designed for deep linking in native apps
Created: 2016-11-05 14:15:01.0
Updated: 2018-05-21 05:45:52.0
Pushed: 2018-05-21 05:45:51.0
Homepage: null
Size: 818
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
\curl -sSL https://get.rvm.io | bash -s stable
gem install bundler
bundle install
rake db:create
rake db:schema:load
rake db:seed
rails s
open http://localhost:3000
Service alerts involve the following models:
AlertFeed
- Represents a single service alert feed. It is primarily designed to consume RSS feeds. This is an STI model; child classes are responsible for knowing how to parse their own feed types. See KingCountyMetroAlertFeed
.AlertFeedItem
- Represents an item in an AlertFeed
Alert feeds are updated from their sources by running rake update_alert_feeds
. In production, this is managed with the Heroku Scheduler add-on.
GET /regions/:region_id/alert_feeds
- Returns a JSON collection of AlertFeed
objects.GET /regions/:region_id/alert_feed_items
- Returns a JSON collection of AlertFeedItem
objects for the given Region
id. Accepts a since
parameter formatted as a UTC timestamp.GET /alert_feeds/:id
- Returns a JSON collection of AlertFeedItem
objects for the given AlertFeed
id. Accepts a since
parameter formatted as a UTC timestamp.