> habit-tracker-api
A tiny habit tracker that's also a live demo of the REST API behind it. Every click you make below is a real request against a mock API layer — watch the console on the right respond in real time.
Base URL: /api/v1
API Reference — 5 endpoints
GET/api/v1/habitsList all habits with current streaks and 30-day history.
POST/api/v1/habitsCreate a new habit. Body: { "name": string }
POST/api/v1/habits/:id/logsToggle today's completion log for a habit.
DELETE/api/v1/habits/:idRemove a habit and all of its logs.
GET/api/v1/habits/:id/statsReturn streak and completion-rate stats for one habit.