Skip to content

rueey/shopify-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shopify-challenge

Basic REST API for an ecommerce site from the shopify challenge (Spring 2019)

Basic Setup:
Clone repository, and create a virtual environment in the project directory. Then run

pip install -r requirements.txt

Run these commands in order

python manage.py migrate
python populate.py
python manage.py runserver

Now the development server should be up and running

API Endpoints:
Host is your local machine, and the port is by default 8000

GET /api/item - returns an item with 'id' (GET parameter)
GET /api/list - returns a listing of items (optional in_stock=[true, false] parameter and sort=[(-)name, (-)inventory])
GET /api/purchase - returns an item with 'id' after a purchase update

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages