Backend routes - ZackSyed/OrderedList GitHub Wiki
Backend routes
Root
GET /
StaticPagesController#root
Users
GET /api/users
fetch user
POST /api/users
create new user
Session
POST /api/session
Sign in
DELETE /api/session
Sign out
Categories
GET /api/catagories
- fetch all categories
PATCH /api/catagories
- update catagories subbed to
List
GET /api/lists
- fetches all lists for user with a certain catagory
PATCH /api/lists/id
- update lists
POST /api/lists/new
- create a new lists
Tasks
GET /api/tasks
- fetched all tasks for a given list
GET /api/tasks/:id
- fetches task
POST /api/lists_id/tasks/new
- create new task
PATCH /api/tasks/:id
- update task
DELETE /api/tasks/:id
- delete task