Exercise Tracker API Docs
User Stories:
-
You can create a user by posting form data username to
/exercise/v1/newUser
and returned will be an object with username and _id.
-
You can get all users
/exercise/v1/users
.
-
You can add an exercise to any user by posting form data username, description, duration.
/exercise/v1/add
no date supplied it will use current date.
-
You can retrieve a full exercise log of any user by getting
/exercise/api/log
with a parameter of username.
-
You can retrieve part of the log of any user by also passing optional parameters.
&from= &to=
use date format yyyy-mm-dd and
&limit=
is a integer
Example Usage: