Skip to content

Implement todo API#276

Open
darkseveral12 wants to merge 1 commit intoZeff01:mainfrom
darkseveral12:cleven-castillo/1-2-years-backend
Open

Implement todo API#276
darkseveral12 wants to merge 1 commit intoZeff01:mainfrom
darkseveral12:cleven-castillo/1-2-years-backend

Conversation

@darkseveral12
Copy link
Copy Markdown

@darkseveral12 darkseveral12 commented Mar 23, 2026

I finally do my task. i hope i can work with you guys! i only do the backend stuff

Here's my implementation.
GET /api/todos – Returns the full list of todos.
POST /api/todos – Adds a new todo. Validates the title field and defaults completed to false if not provided.
GET /api/todos/:id – Retrieves a single todo by its id. Returns a 404 if the todo does not exist.
PUT /api/todos/:id – Updates an existing todo by id. Replaces the title and completed fields, maintaining the same id. Returns 404 if not found.
DELETE /api/todos/:id – Deletes a todo by id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant