Skip to content

kkourti/wine-quality-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wine-quality-api

This is a repository for test/training purposes

API - Exercise

The easiest way to run docker is a linux environment (preferably ubuntu)

The endpoints you have to create are the following:

Part 1

1. '/api/getMaxFixedAcidicity'
2. '/api/getNeutralWines' -> neutral is the ph range between 6-8
3. '/api/getTopAlcoholWines' -> 10 most alcoholic wines
4. '/api/getBottomDensityWines -> 10 least density wines

Part 2

1. '/api/addWine' -> post, insert one or more new wines
2. '/api/editWine' -> post, update an existing wine
3. '/api/removeWine' -> post, remove a wine

Hints:

You DON'T have to create any table or database. Just run and connect to the database given, create:

needed for the exercise

Tips:

Sqlalchemy works on top of a python driver for the respective database. For the PostgreSQL you need a python driver to be installed in your python environment. The most popular is the psycopg2

Part 3

In the folder exercises you will find 2 files exercises.py and exercises.js. Inside these files there are standalone exercises for you to solve in python and javascript respectivelly

* Git

In case you are not comfortable using git, skip the first step of the guideline, just download the code and send as an email with your zip file containing the solutions. We strongly suggest to use the git process though.

Enjoy!

About

This is a repository for training purposes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 49.7%
  • Python 39.8%
  • Shell 8.2%
  • Dockerfile 2.3%