Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 933 Bytes

Readme.md

File metadata and controls

28 lines (19 loc) · 933 Bytes

dinnerfy-ds

Assignment for data science position

Task

  1. install FastAPI and other required libraries
  2. Read the content of recipedata.csv
  3. Write a post endpoint in main.py that takes [recipeID, number of serving] as an input variable and returns the whole recipe as a JSON object.
  4. Refer to recipe.json for the structure of JSON output. Skip the fields that are not in the columns
  5. Once complete create a pull request to this repo
  6. Bonus points for deploying the app on heroku / Railway ...

example

Endpoint: http://localhost:5000/recipe

input : { RecipeID: 1, Servings: 2 }

Ouput: { JSON Output }

Steps (for running on local host 5000 endpoint)

in terminal run : pip install -r requirements.txt

in terminal run : python init.py

The API is hosted at