Skip to content

PythonToDoList/outline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

To Do List in Four Ways

Author: Nicholas Hunt-Walker

DB: postgres

API endpoints

Method Route Description
GET / home page
GET /api/v1/ list of existing endpoints
GET /api/v1/tasks list of all tasks for a user
POST /api/v1/tasks add a new task for this user
GET /api/v1/tasks/<id> detail of one individual task that belongs to a user
PUT /api/v1/tasks/<id> update a user's task
DELETE /api/v1/tasks/<id> delete a user's task
POST /api/v1/profiles create a new user
POST /api/v1/login log a user in
GET /api/v1/logout log a user out
GET /api/v1/profiles/<id> detail for one user
PUT /api/v1/profiles/<id> update info for one user
DELETE /api/v1/profiles/<id> delete one user

The Task Model

class Task
    id - int
    name - str
    note - str | optional
    creation_date - datetime | auto
    due_date - datetime | optional
    user_id - int | foreign key
    completed - bool | default False

The Profile Model

class Profile
    id - int
    username - str
    email - str
    password - str
    date_joined - datetime | auto
    tasks - str | related to Task objects

Flask

Built with sloria's Flask cookiecutter

Sources:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published