Skip to content

unwrap-nicolas/zero-dependency-todo-list-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zero Dependency Todo List API Documentation

Overview

This API allows you to manage a todo list with zero dependencies.

How to run

npm run start

Endpoints

List all

curl -X GET "http://localhost:3333/tasks"

Search

curl -X GET "http://localhost:3333/tasks?search=wash dishes"

Create

curl -X POST "http://localhost:3333/tasks" -H "Content-Type: application/json" -d '{"title": "New task", "description": "blabla"}'

Delete

curl -X DELETE "http://localhost:3333/tasks/TASK_ID"

Update

curl -X PUT "http://localhost:3333/tasks/TASK_ID" -H "Content-Type: application/json" -d '{"title": "New Title", "description": "New Description"}'

Complete

curl -X PATCH "http://localhost:3333/tasks/TASK_ID/complete"

Import CSV

curl -X POST "http://localhost:3333/tasks/import_csv" -F "file=@sample.csv"
# OR
curl -X POST "http://localhost:3333/tasks/import_csv" -H "Content-Type: application/json" -d '{"csv": [["Task 1", "Description 1"], ["Task 2", "Description 2"]]}'

License

This project is licensed under the MIT License.

About

an api for todo list with zero dependencies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors