Exercise Tracker

The Exercise Tracker API is a simple API that allows developers to create and track exercises for different users. With this API, you can easily add new users, create new exercises, and view exercise logs for each user.

Example Usage

Create User

To create a new user, you can send a POST request to the endpoint bellow with the username in the payload.

POST /api/users

Get Users

To view all users.

GET /api/users

Create Exercise

To create a new exercise for a user, you can send a POST request to the endpoint bellow with the user ID, exercise description, duration, and optional date in the payload.

POST /api/users/:_id/exercises

Get User's Exercise Logs

To view a user's exercise log, you can send a GET request to the endpoint bellow with the user ID and optional date range (from, to) and limit in the query parameters.

GET /api/users/:_id/logs

Try yourself

Create User

Get Users

Create Exercise

Get Exercise Logs