Skip to content

panasevychol/sample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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._  

About

Fork this and send back a pull request

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%