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
-
Notifications
You must be signed in to change notification settings - Fork 0
Maseline/promo_code_api
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A simple Rest Api to create,return,update,test location based promotion codes/vouchers
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published