Files
GoldenCheetah/doc/user/rest-api.txt
Alejandro Martinez 83340aa148 Access to Measures from REST API
Part 4 of #2588
2017-11-19 00:14:26 -03:00

39 lines
2.0 KiB
Plaintext

http://localhost:12021 Default base URL
/ List Athletes
Returns csv of athletes and core data (dob, sex etc)
/<athlete> List Athlete Rides with Metrics and Metadata
since=yyyy/mm/dd
before=yyyy/mm/dd
metrics=NP,IF,TSS,AveragePower
metadata=none or all or list (Sport,Workout Code)
intervals=true
Returns csv of activities incl. metrics and metadata
/<athlete>/zones List Athlete Zone Config
for=xxx where xxx is one of power, hr, pace, swimpace
Returns csv of zone config history (e.g. configured CP/W')
/<athlete>/activity/<filename> Fetch activity file
format=xxx where xxx is one of csv, tcx, json, pwx
Returns ride file data in the requested format
/<athlete>/meanmax/<filename> Fetch activity Mean Max data
series=xxx where xxx is one of watts,hr,cad,speed,nm,vam.xPower,NP
Returns csv of the mean max data for a ride
/<athlete>/meanmax/bests Fetch Mean Max Bests for a Date Range
since=yyyy/mm/dd
before=yyyy/mm/dd
series=xxx where xxx is one of watts,hr,cad,speed,nm,vam.xPower,NP
Returns an aggregate of the best mean maximal values over the date range
/<athlete>/measures List supported measures groups (Body/Hrv for now)
/<athlete>/measures/<group> Fetch Measures from <group> for a Date Range
since=yyyy/mm/dd
before=yyyy/mm/dd