API Routes - lucascostamonteiro/RememberTheBread GitHub Wiki

API Routes

List

A logged in user may create new lists.

POST/:userId/:listId

A logged in user may delete one of my lists, removing it from my list summary and from the database.

DELETE /:userId/:listId

A logged in user may edit one of their lists by renaming it, which appears both in the database and on the frontend.

PUT /:userId/:listId

Task

A logged in user may create new tasks.

POST/:userId/:taskId

A logged in user may delete one of their tasks, removing it from their main page and from database.

DELETE /:userId/:taskId

A logged in user may edit one of their tasks, marking it as complete or renaming it, which appears both in the database and on the frontend.

PUT /:userId/:taskId