-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequests.http
40 lines (33 loc) · 999 Bytes
/
requests.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Get list of station names for a particular line.
GET /resource/8pix-ypme.json?brn=true&$select=station_name&$group=station_name
Host: data.cityofchicago.org
Accept: application/json
X-App-Token: {key}
###
# Get both directions for a selected station.
GET /resource/8pix-ypme.json?brn=true&station_name=Fullerton
Host: data.cityofchicago.org
Accept: application/json
X-App-Token: {key}
###
# Get arrival predictions for a stop.
GET lapi.transitchicago.com/api/1.0/ttarrivals.aspx?key={key}&stpid=30030&rt=brn&outputType=JSON
###
# Get list of stations
GET /resource/8pix-ypme.json?red=true
Host: data.cityofchicago.org
Accept: application/json
X-App-Token: {key}
###
# Test internal get_stations endpoint.
GET http://127.0.0.1:5000/api/blue/stations
###
# Test internal get_stops endpoint.
GET http://127.0.0.1:5000/api/stops
?line=blue
&station=Belmont
###
# Test internal get_arrival_prediction endpoint.
GET http://127.0.0.1:5000/transit/prediction
?line=brn
&stopID=30030