This repository is for a django rest framework api that can be used to generate promotion codes with different values that are location based. It provides endpoints to generate the codes, update the codes, list the codes, list only active codes and test the code. The test endpoint requires the code, origin name and destination name as paremeters. Quick setup (Make sure Python is install beforehand) 1-Clone the repository 2-Create a virtual environment in the base folder 3-Activate your virtual environment 4-Install the required packages using pip install -r requirements.txt 5-Make migrations, migrate, run your server. Django rest framework provides a browsable api but can also be tested using curl or httpie