Jack Roybal
https://github.com/ExcuseMeImJack/asante.git
pipenv install -r requirements.txt
flask_schema
schema, defined by the SCHEMA
environment variable. Replace the value for SCHEMA
with a unique name, making sure you use the snake_case convention.pipenv shell
flask db upgrade
flask seed all
flask run
/boards
GET /boards/{board_id}/sections
{'sections': [{'id': 1, 'name': 'Test Section', ...}, {'id': 2, 'name': 'Test Section', ...}, ...]}
POST /boards
{"Board": {'id': 1, 'name': 'Test Board', ...}}
GET /boards/{board_id}
{"Board": {'id': 1, 'name': 'Test Board', ...}}
DELETE /boards/{board_id}
{'message': 'Successfully deleted!'}
/sections
GET /sections
{'sections': [{'id': 1, 'name': 'Test Section', ...}, {'id': 2, 'name': 'Test Section', ...}, ...]}
GET /sections/{section_id}
{"Section": {'id': 1, 'name': 'Test Section', ...}}
PUT /sections/{board_id}/move
{'sections': [{'id': 1, 'name': 'Test Section', ...}, {'id': 2, 'name': 'Test Section', ...}, ...]}
PUT /sections/{section_id}
{"Section": {'id': 1, 'name': 'Test Section', ...}}
POST /sections/{board_id}
{"Section": {'id': 1, 'name': 'Test Section', ...}}
/tasks
GET /tasks/{task_id}
{ "Task": {'id': 1, 'name': 'Test Task', ...}}
GET /tasks/section/{section_id}
{'Tasks': [{'id': 1, 'name': 'Test Task', ...}, {'id': 2, 'name': 'Test Task', ...}, ...]}
PUT /tasks/{section_id/move}
{'Tasks': [{'id': 1, 'name': 'Test Task', ...}, {'id': 2, 'name': 'Test Task', ...}, ...]}
PUT /tasks/{task_id}
{ "Task": {'id': 1, 'name': 'Test Task', ...}}
DELETE /tasks/{task_id}
{'message': 'Successfully deleted!'}
/users
GET /users/tasks
{'Tasks': [{'id': 1, 'name': 'Test Task', ...}, {'id': 2, 'name': 'Test Task', ...}, ...]}
GET /users/boards
{'Boards: [{'id': 1, 'name': 'Test Board', ...}, {'id': 2, 'name': 'Test Board', ...}, ...]}
GET /users
user: {'id': 1, 'username': 'Tester', ...}
POST /users/task/{section_id}
{ "Task": {'id': 1, 'name': 'Test Task', ...}}
PUT /users
{'id': 1, 'username': 'Tester', ...}
DELETE /users
{'message': 'Successfully deleted!'}