dvrpc / rtsp-api

API for the DVRPC's Regional Transit Screening Platform.
https://cloud.dvrpc.org/api/rtsp/v2/docs
0 stars 0 forks source link

comparison between Django and FastAPI #7

Closed kdwarn closed 1 year ago

kdwarn commented 1 year ago

A basic sanity check comparing number of results.

number is for both unless otherwise stated.

336 https://alpha.dvrpc.org/api/rtps/access?stations http://127.0.0.1:8000/api/rtsp/v2/access/stations

90205 https://alpha.dvrpc.org/api/rtps/access?zones http://127.0.0.1:8000/api/rtsp/v2/access/zones

25036 https://alpha.dvrpc.org/api/rtps/frequency?zones http://127.0.0.1:8000/api/rtsp/v2/frequency/zone

193 https://alpha.dvrpc.org/api/rtps/frequency?bus http://127.0.0.1:8000/api/rtsp/v2/frequency/bus

29 https://alpha.dvrpc.org/api/rtps/frequency?rail http://127.0.0.1:8000/api/rtsp/v2/frequency/rail

looks about right https://alpha.dvrpc.org/api/rtps/frequency?transit http://127.0.0.1:8000/api/rtsp/v2/frequency/transit

order is different, not sure about values https://alpha.dvrpc.org/api/rtps/gap?zones=[14635,15249]&direction=From%20Zone http://127.0.0.1:8000/api/rtsp/v2/gap/zones/14635,15249/FromZone

demand score of 28688 https://alpha.dvrpc.org/api/rtps/gap?muni=4204503336&direction=From%20Zone http://127.0.0.1:8000/api/rtsp/v2/gap/muni/4204503336/FromZone

order is different, not sure about values https://alpha.dvrpc.org/api/rtps/gap?summary http://127.0.0.1:8000/api/rtsp/v2/gap/summary

369 https://alpha.dvrpc.org/api/rtps/gap?list http://127.0.0.1:8000/api/rtsp/v2/municipalities

24395 https://alpha.dvrpc.org/api/rtps/reliability?tti http://127.0.0.1:8000/api/rtsp/v2/reliability/tti

29865 https://alpha.dvrpc.org/api/rtps/reliability?weighted http://127.0.0.1:8000/api/rtsp/v2/reliability/weighted

29865 https://alpha.dvrpc.org/api/rtps/reliability?score http://127.0.0.1:8000/api/rtsp/v2/reliability/score

67395 https://alpha.dvrpc.org/api/rtps/reliability?speed http://127.0.0.1:8000/api/rtsp/v2/reliability/speed

180 https://alpha.dvrpc.org/api/rtps/reliability?otp http://127.0.0.1:8000/api/rtsp/v2/reliability/otp

same https://alpha.dvrpc.org/api/rtps/reliability?septa http://127.0.0.1:8000/api/rtsp/v2/reliability/septa

same https://alpha.dvrpc.org/api/rtps/reliability?njt http://127.0.0.1:8000/api/rtsp/v2/reliability/njt

Looks about right https://alpha.dvrpc.org/api/rtps/reliability?filter http://127.0.0.1:8000/api/rtsp/v2/reliability/filter

kdwarn commented 1 year ago

Tests now handle this.