-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07b7834
commit 7850dbc
Showing
1 changed file
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
# gtfs-realtime-rust | ||
# gtfs-realtime-rust | ||
|
||
This is a Rust learning exercise to build a REST server that dynamically launches and manages a set of async tasks. These tasks fetch a GTFS-Realtime feed from an endpoint supplied during a POST call. | ||
|
||
## Running Locally | ||
``` | ||
cargo test | ||
cargo run | ||
``` | ||
|
||
## Sample Feed | ||
``` | ||
{ | ||
"name": "MTA A Division", | ||
"frequency": 30, | ||
"url": "https://api-endint.mta.info/Dataservice/mtagtfsfeeds/nyct%2Fgtfs", | ||
"headers": { | ||
"x-api-key": "<key_goes_here>" | ||
} | ||
} | ||
``` |