/sample

Fork this and send back a pull request

Primary LanguagePython

Here is my version of test task. It's really tiny application written with Flask micro-framework and Requests.

###How to run

Just install requirements using pip and run by executing following commands:

pip install -r requirements.txt
python run.py

Enjoy!

ps: it's also easy to realize the "bonus" part with Django framework but it's necessary to get some clarification to make that app not senseless.

_Fork this project and send us a pull request_

Write a simple python webservice that uses, manipuates and returns the data found here: [http://www.unisport.dk/api/sample/](http://www.unisport.dk/api/sample/).


**/products/**  


should return the first 10 objects ordered with the cheapest first.

**/products/kids/**

should return the products where kids=1 ordered with the cheapest first

**/products/?page=2**

 The products should be paginated where **page** in the url above should return the next 10 objects  

 **/products/id/**

should return the individual product.



**_Remember to test_**   
**_Remember to document (why, not how)_**

####Bonus:
 extend the service so the products can also be created, edited and deleted in a backend of choice.


_You are welcome to use any thirdparty python web framework or library that you are familiar with._