Skip to content

Create a todo API Implementation#304

Open
Zollll wants to merge 2 commits into
Zeff01:mainfrom
Zollll:aldrin-mendoza/1-2-years-backend
Open

Create a todo API Implementation#304
Zollll wants to merge 2 commits into
Zeff01:mainfrom
Zollll:aldrin-mendoza/1-2-years-backend

Conversation

@Zollll

@Zollll Zollll commented Jun 23, 2026

Copy link
Copy Markdown

Backend Todo API Implementation

  • A simple REST API built using Node.js and Express as part of the backend developer assessment.

Tech Stack used:

    - Used Nodej.s
    - Express.js 
    - JavaScript.

Structured files based on its purpose:

  - Separation of routes from controllers.
  - Business logic are in controllers.
  - In-memory date are stored in dedicated module.

Implemented features such as:

  - Create new todo
  - Retrieve all todos
  - Retrieve a single todo by ID
  - Update an existing todo
  - Delete a todo
  - In-memory data storage (no database)
  • Data is stored in memory and resets on server restart
  • Basic validation added for required fields (e.g., title)
  • Proper HTTP status codes used for error handling

API Endpoints

- GET /api/todos
- GET /api/todos/:id
- POST /api/todos
- PUT /api/todos/:id
- DELETE /api/todos/: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