- POST
localhost:8000/api/v1/customers/token/login/
Login with below parameters{ "email": "[email protected]", "password": "Test@123" }
localhost:8000/api/v1/trucks/
List of icecream truckslocalhost:8000/api/v1/items/
Inventory list from all the trucks- GET
localhost:8000/api/v1/orders/
List of orders - POST
localhost:8000/api/v1/orders/
Place order with below parameters{ "line_items": { "item": 1, "quantity": 1 } }
git clone https://github.com/tashi_179/icecream_truck.git
cd icecream_truck
Create a virtual environment to install dependencies in and activate it:
Using venv
python -m venv env
source env/bin/activate
Then run the following command to install the dependencies:
pip install -r requirements.txt
Run seed file to populate dummy data
bash migrate_and_seed.sh
python manage.py runserver
To run the test suite:
python manage.py test