Exercise Tracker

Exercise Learning Lab

Exercise Tracker API Explorer

Practice creating users, adding workouts, and reading logs with realistic URLs and instant JSON feedback.

How to track and use URL endpoints

  1. Create a user first with POST /api/users.
  2. Use the returned _id in POST /api/users/:_id/exercises.
  3. View progress with GET /api/users/:_id/logs and optional from, to, limit.

[ ] means optional query values.

Practice flow

Your data is saved in browser local storage for learning (until you clear browser data).

1) Create user Pending
2) Add exercise Pending
3) Read logs Pending

Create User

POST /api/users

Add Exercise

POST /api/users/:_id/exercises

Read Logs

GET /api/users/:_id/logs?[from][&to][&limit]

Response

Run any form to see JSON response here.

API Simulator (Frontend Only)



        

How to use this simulator

  • Opening /api/... in browser directly returns 404 here, because this project is static frontend (no backend routes).
  • Copy URL helps learners inspect and understand endpoint structure (path params + query params).
  • Copy cURL helps learners test the same request in terminal/Postman later when a real backend exists.

Current endpoint breakdown

Endpoint
Path params
Query params
POST /api/users
POST /api/users/:_id/exercises
GET /api/users/:_id/logs