Skip to content

jeffstedt/deno-2-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deno v2 Todo API

Battle testing Deno v2 with a simple REST API for managing todos.

Features

  • CRUD Operations: Create, read, update, and delete todos.
  • Data Validation: Zod-based schema validation
  • In-Memory Database: Fast and lightweight for local development.

Prerequisites

Run the server

deno run dev

Run tests

deno run test

Endpoints

  • GET /api/todos - Retrieves all todos.
  • GET /api/todos/:id - Retrieves a specific todo by ID.
  • POST /api/todos - Creates a new todo
  • PUT /api/todos - Creates a new todo.
  • PATCH /api/todos/:id - Updates a specific todo by ID.
  • DELETE /api/todos/:id - Archives a specific todo by ID.

About

Simple REST API to battle test Deno v2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published