To start HTTP server, do
sbt run
docker build -t gymio:latest .
docker run -it -p 8080:8080 gymio:latest
Method | Url | Description |
---|---|---|
GET | /workout/{userId} | All workouts |
GET | /workout/active/{userId} | Active workout |
POST | /workout/active/{userId}/start | Start a workout |
POST | /workout/active/{userId}/log | Log a completed exercise to an active workout |
POST | /workout/active/{userId}/finish | Finish an active workout |
GET | /user-stats/{userId} | Stats for user |
POST | /user-stats/{userId} | Save stats for user |