Fast food fast is a food delivery application.
- An admin creates food items
- A normal user creates an account and can login
- A logged in user can view available food items created by the admin
- A user chooses on a food item and makes an order
- An Admin can accept or reject the order request from a user
- A user gets notified on his/her order status
- Accepted orders are delivered
Clone the repository below
git clone https://github.com/davishooly/FASTFOODFAST-API.git
virtualenv env --python=python3.6
source env/bin/activate
pip install -r requirements.txt
$ export FLASK_APP = run.py
$ export MODE = development
$ flask run
Method | Endpoint | Description | Roles |
---|---|---|---|
POST | /api/v2/auth/signup | sign up a user | users |
POST | /api/v2/users/<{id}>/orders | post an order | users |
DELETE | /api/v2/order/<{id}> | delete a specific order | users |
POST | /api/v2/menu | post a fooditem | Admin |
GET | /api/v2/orders | get orders | Admin |
DELETE | /api/v2/menu/<{id}> | delete a specific food item | Admin |
PUT | /api/v2/menu/<{id}> | update a menu | Admin |
PUT | /api/v2/orders/<{id}>/accept | accept an order | Admin |
PUT | /api/v2/orders/<{id}>/reject | reject an order | Admin |
PUT | /api/v2/orders/<{id}>/complete | complete an order | Admin |
GET | /api/v2/accepted/orders | get accepted orders | Admin |
GET | /api/v2/rejected/orders | get rejected orders | Admin |
GET | /api/completed/orders | get completed orders | Admin |
POST | /api/v2/auth/login | login a user | Admin/users |
GET | /api/v2/orders/<{id}> | get a specific food order | Admin/users |
GET | /api/v2/menu | get menu | Admin/users |
nosetests
- Testing with coverage
nosetests --with-coverage --cover-package=app
Kimame Davis