Application to organize worker and their assigned work order. Contributes to properly manage workers watch work order deadlines.
Below are bash command to be execute to fully run project in development environment.
mkdir project
cd project
Copy project zip
Unzip project zip
virtualenv env
source env/bin/activate
cd project_dir
pip install -r requirements/dev.txt
python manage.py migrate
python manage.py runserver
Server running at http://localhost:8000/
Development
BASE_URL = http://localhost:8000/
URL: BASE_URL + 'v1/workers/'
Method: GET
URL: BASE_URL + 'v1/workers/'
Method: POST
Data:
{
"name": "Name of worker",
"company_name": "Name of company",
"email": "Worker email"
}
URL: BASE_URL + 'v1/workers/<workder_id>'
Method: DELETE
URL: BASE_URL + 'v1/work-orders/'
Method: GET
Ascending
URL: BASE_URL + 'v1/work-orders/?ordering=deadline'
Method: GET
Descending
URL: BASE_URL + 'v1/work-orders/?ordering=-deadline'
Method: GET
URL: BASE_URL + 'v1/work-orders/'
Method: POST
Data:
{
"title": "Work order title",
"description": "Work order description",
"deadline": "Deadline in YYYY-MM-DD format"
}
URL: BASE_URL + 'v1/work-orders/<work_order_id>/assign/<worker_id>/'
Method: GET
URL: BASE_URL + 'v1/work-orders/<work_order_id>/unassigned/<worker_id>/'
Method: GET
URL: BASE_URL + 'v1/workers/<worker_id>/work_orders/'
Method: GET