Skip to content

nullpuppy/ouchallenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OfferUp Backend Coding Challenge

Super simple micropservice for retrieving price recommendations for a given item in a given city.

Requirements

Uses Django and Django Rest Framework.

Targetting vagrant with Ubuntu 14.04 with 1 CPU and 1024MB RAM.

Usage

git clone https://github.com/nullpuppy/ouchallenge cd ouchallenge vagrant up vagrant ssh cd /vagrant source env/bin/activate uwsgi --ini ouchallenge/owsgi-vagrant.ini

API

Endpoint Description
GET /item-price-service/?item=&city= Retrieve Pricing recommendation based on item and city

Example

GET /item-price-service/?item=Furniture&city=Philadelphia

{
    "status": 200,
    "content": {
        "item": "Furniture",
        "item_count": 6,
        "price_suggestion": 33,
        "city": "Philadelphia"
   }
}

GET /item-price-service/?item=Furniture

{
    "status": 200,
    "content": {
        "item": "Furniture",
        "item_count": 6,
        "price_suggestion": 33,
        "city": "Not Specified"
   }
}

GET /item-price-service/

{
    "status": 404,
    "content": {
        "message": "Not Found",
   }
}

About

OfferUp Backend Coding Challenge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published