Classroom ready

Todo API Documentation

This guide summarizes the HTTP endpoints your students can call to create, update, and manage todo items while the live dashboard updates in real time. Every endpoint also supports the ?user=NAME query parameter so you can spotlight a specific learner live.

Authentication

Every request must include the bearer token below in the Authorization header.

xXBestCoreClassIS404Xx

Header format: Authorization: Bearer xXBestCoreClassIS404Xx

Base URL: https://socialdo.is404.net

Endpoints

GET /api/todos

List todos

Returns every todo item. Add ?user=NAME to filter by user.

user (optional)
POST /api/todos

Create todo

Creates a todo item and returns it with its ID.

Body

                {
                  "user": "ada",
                  "todo": "Prepare lecture notes"
                }
              
PUT /api/todos/{id}

Update todo

Change the description or mark an item as complete.

Body options

                {
                  "todo": "Publish notes",
                  "completed": true
                }
              
DELETE /api/todos/{id}

Delete todo

Removes a todo item. Returns 204 No Content when successful.