Maseline / promo_code_api

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Python 100.0%