Skip to content

A simple Rest Api to create,return,update,test location based promotion codes/vouchers

Notifications You must be signed in to change notification settings

Maseline/promo_code_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

promo_code_api

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

About

A simple Rest Api to create,return,update,test location based promotion codes/vouchers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages