Skip to content

EdrylP | 1-2 Years Backend Assessment#260

Open
deyperfect wants to merge 6 commits intoZeff01:mainfrom
deyperfect:edryl-palinis/1-2-years-backend
Open

EdrylP | 1-2 Years Backend Assessment#260
deyperfect wants to merge 6 commits intoZeff01:mainfrom
deyperfect:edryl-palinis/1-2-years-backend

Conversation

@deyperfect
Copy link

@deyperfect deyperfect commented Feb 21, 2026

Implementation

A simple Todo List REST API using Node.js and Express with full CRUD operations. Data is stored in memory, no database required.

Endpoints

  • 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

Details

  • MVC-inspired folder structure
  • In-memory data storage using an array stored in store.js
  • UUIDs for unique todo IDs
  • Environment variables managed with dotenv

Request Body

  • POST /api/todos requires title (string)
  • PUT /api/todos/:id requires title (string) and completed (boolean)

Response Structure

  • All todos contain id, title, completed, and createdAt fields
  • Create and update responses include a message and the todo object
  • Delete response returns a success message only

Error Responses & Status Codes

  • 200 - Success
  • 201 - Todo created successfully
  • 400 - Missing or invalid request body
  • 404 - Todo not found
  • 409 - Todo already exists

Validation Rules

  • title is required and cannot be empty
  • completed is required on update and must be a boolean
  • Duplicate todo titles are not allowed

Postman API Documentation

https://documenter.getpostman.com/view/51751420/2sBXcEk1FV

Author

@deyperfect deyperfect changed the title Edryl Palinis | 1-2 Years | Backend Assessment EdrylP | 1-2 Years Backend Assessment Feb 21, 2026
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