๐Ÿ“ Todo App

Organize your tasks and boost your productivity

My Todos

Add New Todo

Low
Medium
High

๐Ÿ‘‘ Admin Management Panel

All Users

Loading users...

๐Ÿ“š API Documentation

Base URL: https://nubbtodoapi.kode4u.tech/api
All endpoints require authentication via Bearer token in the Authorization header (except register/login)

๐Ÿ” Authentication

POST /auth.php
Register a new user account
POST https://nubbtodoapi.kode4u.tech/api/auth.php
Content-Type: application/json

{
  "action": "register",
  "username": "testuser",
  "password": "testpass123"
}
POST /auth.php
Login and receive authentication token
POST https://nubbtodoapi.kode4u.tech/api/auth.php
Content-Type: application/json

{
  "action": "login",
  "username": "testuser",
  "password": "testpass123"
}

๐Ÿ“‹ Todos - CRUD Operations

GET /todos.php
Get all todos for the authenticated user
GET https://nubbtodoapi.kode4u.tech/api/todos.php
Authorization: Bearer YOUR_TOKEN_HERE
Content-Type: application/json
GET /todos.php?id=1
Get a single todo by ID
GET https://nubbtodoapi.kode4u.tech/api/todos.php?id=1
Authorization: Bearer YOUR_TOKEN_HERE
Content-Type: application/json
POST /todos.php
Create a new todo
POST https://nubbtodoapi.kode4u.tech/api/todos.php
Authorization: Bearer YOUR_TOKEN_HERE
Content-Type: application/json

{
  "title": "Complete project documentation",
  "description": "Write comprehensive documentation",
  "date": "2026-01-15",
  "priority": "high"
}
Priority options: "low", "medium", "high"
PUT /todos.php
Update an existing todo (all fields optional)
PUT https://nubbtodoapi.kode4u.tech/api/todos.php
Authorization: Bearer YOUR_TOKEN_HERE
Content-Type: application/json

{
  "id": 1,
  "title": "Updated title",
  "description": "Updated description",
  "date": "2026-01-18",
  "priority": "medium"
}
DELETE /todos.php
Delete a todo
DELETE https://nubbtodoapi.kode4u.tech/api/todos.php
Authorization: Bearer YOUR_TOKEN_HERE
Content-Type: application/json

{
  "id": 1
}

๐Ÿงช Testing Examples

POST /todos.php (Missing Fields)
Example: Create todo with missing required fields (will return error)
POST https://nubbtodoapi.kode4u.tech/api/todos.php
Authorization: Bearer YOUR_TOKEN_HERE
Content-Type: application/json

{
  "title": "Incomplete todo"
}

Note: Replace YOUR_TOKEN_HERE with your actual authentication token received from login/register.