It looks really nice, we should chat / swap emails. I like the idea of querying with a pic of the workout.
We could also look to upload too, maybe once the basics are working?
Any restful type API would work, if you already have one we can adapt. otherwise, how about something like:
- list
have optional query parameters; desc freetext, duration, [if/tss (?)]
returns id, desc, thumbnail etc.
- download
use workout id returned in list?
return payload with workout, desc, duration and type
- upload
pass apikey and nickname, provide desc, duration and type (mrc/zwo) with payload in mrc/zwo format
I realise that you ask users to register before uploading, that might be something we could look to work around e.g. goldencheetah uses an api secret to upload, the user must have a nickname setup in preferences. That way upload wouldn't be open to abuse by others and could be controlled in GC too.
I think the thumbnails are ace btw.
WRT TSS/IF if you are using an embedded FTP= setting then the TSS/IF (or BikeScore, RI if you prefer) should scale too, but you don't calculate them at present, maybe consider that at a later stage?
Mark