This is an API application comprised of several endpoints for a food delivery service app.
- Register a user
- Login a user
- Place an order for food
- Get the order history for a particular user
- Get all orders
- Add a specific order
- Update the status of an order
- Add menu category
- Update a specific menu category
- Delete a specific menu category
- Get available menu
- Add meal option to the menu
$ mkdir fast-food-api
$ cd fast-food-api
$ apt-get install pipenv
$ pipenv --python 3.6
$ pipenv shell
here or git clone https://github.com/semainda/fast-food-api
$ pipenv install
$ export APP_SETTINGS = "development"
$ export APP_SETTINGS = "testing"
$ python run.py
$ pytest app/tests"
| Method | Endpoint | Functionality |
|---|---|---|
| POST | /auth/signup | Register a user |
| POST | /auth/login | Login a user |
| POST | /auth/logout | Sign out a user |
| Method | Endpoint | Functionality |
|---|---|---|
| POST | users/orders | Place and order for food |
| GET | users/orders | Get the order history for a particular user |
| GET | /orders/ | Get all orders |
| GET | /orders/order_id | Add a specific order |
| PUT | /orders/order_id | Updated the status of an order |
| GET | /menu | Get available menu |
| POST | /menu | Add a meal option to the menu |
| POST | /menu/categories/ | Add a menu category |
| GET | /menu/categories | Get all categories |
| GET | /menu/categories/cat_id | Get a specific category |
| PUT | /menu/categories/cat_id | Update a specific category |
| DELETE | /menu/categories/cat_id | Delete a specific category |