jovandeginste / workout-tracker

A workout tracking web application for personal use (or family, friends), geared towards running and other GPX-based activities
Other
958 stars 30 forks source link

Wishlist: REST API #42

Closed iotemylabs closed 7 months ago

iotemylabs commented 7 months ago

I like the simplicity of this app, and I would love to see a REST API accessible on this so that I can integrate it into my Home Assistant instance, some ideas could be:

Thank you, and great work!

jovandeginste commented 7 months ago

You can get something like a calendar with jq invocation:

curl -sSLf localhost:8080/api/v1/workouts -H "Authorization: Bearer YOUR_TOKEN" |
  jq '.results | map({Name: .Name, Date: .Date, Address: .Data.Address.FormattedAddress})'