Skip to content
roshanshrestha01Public

About

Application to organize worker and their assigned work order. Contributes to properly manage workers watch work order deadlines with TDD approach

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

Workers

Application to organize worker and their assigned work order. Contributes to properly manage workers watch work order deadlines.

Installation

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/

Necessary Endpoint

Development
BASE_URL = http://localhost:8000/

Worker List

URL: BASE_URL + 'v1/workers/'
Method: GET

Worker Create

URL: BASE_URL + 'v1/workers/'
Method: POST
Data:

{
  "name": "Name of worker",
  "company_name": "Name of company",
  "email": "Worker email"
}

Worker Delete

URL: BASE_URL + 'v1/workers/<workder_id>'
Method: DELETE

Fetch all Work Order List

URL: BASE_URL + 'v1/work-orders/'
Method: GET

Sort all Work Order List with deadline

Ascending
URL: BASE_URL + 'v1/work-orders/?ordering=deadline'
Method: GET

Descending
URL: BASE_URL + 'v1/work-orders/?ordering=-deadline'
Method: GET

Work Order Create

URL: BASE_URL + 'v1/work-orders/'
Method: POST
Data:

{
  "title": "Work order title",
  "description": "Work order description",
  "deadline": "Deadline in YYYY-MM-DD format"
}

Assign work orders

URL: BASE_URL + 'v1/work-orders/<work_order_id>/assign/<worker_id>/'
Method: GET

Unassign work orders

URL: BASE_URL + 'v1/work-orders/<work_order_id>/unassigned/<worker_id>/'
Method: GET

Work orders specific to worker

URL: BASE_URL + 'v1/workers/<worker_id>/work_orders/'
Method: GET

About

Application to organize worker and their assigned work order. Contributes to properly manage workers watch work order deadlines with TDD approach

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages