#https://anyatibrian.github.io/fast-food-fast/
Fast-Food-Fast is a food delivery service app for a restaurant.
These are APIs to be used to interface the fuctionality of the Fast Food Fast application
- Placing order for food
- Obtaining a list of orders.
- Fetching a specific order.
- Updating the order status.
These are the endpoints
METHOD | Endpoint | Description | Body (json) |
---|---|---|---|
GET | /api/v1/orders/ | Get all orders | |
GET | /api/v1/orders/id | Get specific orders using an id | |
POST | /api/v1/orders | Place a new orders | username ,deliveryType,location , pieces |
PUT | /api/v1/orders/id | Update a specific orders status to 'complete','pending','decline',accept | orderStatus |
APIs are Hosted at https://fast-food-fast-ab.herokuapp.com/api/v1/orders
Sample get all orders
These are instructions for setting up Fast Food Fast app in a development enivornment.
-
Python 3.6
-
Make a directory on your computer and a virtual environment
$ mkdir fast-food-fast
-
Prepare the virtual environment
$ pip install virtualenv $ virtualenv venv
-
Clone the project repo
$ git clone https://github.com/anyatibrian/fast-food-fast.git
-
switch to ApiV1 branch
$ git checkout ApiV1
-
Install necessary requirements
$ pip install -r requirements.txt
-
Run development server
$ python app.py
This site should now be running at http://localhost:5000
-
Make sure pytest is installed
$ py.test