Skip to content

Implement Todo API#298

Open
Matthewtizon wants to merge 1 commit into
Zeff01:mainfrom
Matthewtizon:john-matthew-tizon/1-2-years-backend
Open

Implement Todo API#298
Matthewtizon wants to merge 1 commit into
Zeff01:mainfrom
Matthewtizon:john-matthew-tizon/1-2-years-backend

Conversation

@Matthewtizon

Copy link
Copy Markdown

Implemented a simple Todo REST API using Node.js and Express structured folder.

Features included:

  • GET /api/todos - List all todos
  • GET /api/todos/:id - Get a single todo
  • POST /api/todos - Create a new todo
  • PUT /api/todos/:id - Update a todo
  • DELETE /api/todos/:id - Delete a todo

Each todo includes:

  • id
  • title
  • completed
  • createdAt

Added basic validation and error handling for invalid input, missing todos, and unknown routes.

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