Skip to content

itssos/todo-list-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Todo List API

This project is a simple to-do list API without authentication.

Database installation

The table is generated automatically, but you must create the MySQL database with the name 'todo-list-api'

  CREATE DATABASE todo_list_api;

API Reference

Get all tasks

  GET /api/v1/tasks

Get task

  GET /api/v1/tasks/{taskId}
Parameter Type Description
taskId int [Required] ID of task to fetch

Create task

  POST /api/v1/tasks
Parameter Type Description
description String [Required] Task description
state ENUM(PENDING, COMPLETED) Task state, default = PENDING

Update task description

  POST /api/v1/tasks/{taskId}/description
Parameter Type Description
taskId int [Required] ID of the task to update
description String [Required] Task description

Update task state

  PUT /api/v1/tasks/{taskId}/state
Parameter Type Description
taskId int [Required] ID of the task to update
state ENUM(PENDING, COMPLETED) [Required] Task state

Delete task

  DELETE /api/v1/tasks/{taskId}
Parameter Type Description
taskId int [Required] ID of the task to delete

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages