Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 649 Bytes

README.md

File metadata and controls

44 lines (29 loc) · 649 Bytes

ghc-application

API LINK: https://ghc-applications-api.vercel.app/

Todo API

This is a simple Todo API built with Express.js and Prisma.

API Endpoints

GET /todos

Fetches all todos.

POST /todos

Creates a new todo.

Request body:

{
    "title": "string"
}

PUT /updatetodos

Updates a todo's completion status.

{
    "id": "number",
    "completed": "boolean"
}

DELETE /todos/:id

Deletes a todo.