Exercise tracker

Create a New User

POST /api/exercise/new-user

Add exercises

POST /api/exercise/add

A complete list of users: /api/exercise/users


Retrieve a user's exercise log:GET /api/exercise/log?{userId}[&from][&to][&limit]

{ } = required parameters, [ ] = optional parameters

from, to = dates (yyyy-mm-dd); limit = number

Example 1: https://dog-comic.glitch.me/api/exercise/log?userId=l2N0rrX1I

Example 2: https://dog-comic.glitch.me/api/exercise/log?userId=l2N0rrX1I&from=2018-01-01&to=2019-01-01

Example 3: https://dog-comic.glitch.me/api/exercise/log?userId=l2N0rrX1I&limit=3

Example 4: https://dog-comic.glitch.me/api/exercise/log?userId=l2N0rrX1I&from=2018-01-01&to=2019-01-01&limit=3 -- Needs work