A test project to learn FastAPI by creating a hot sauce API!
GET, DELETE, POST, and PUT supported
Example calls:
Get all sauces: hotsauce-sujones.pythonanywhere.com/sauces/
Get sauce by id: hotsauce-sujones.pythonanywhere.com/sauces/1
Example response:
{
"name": "Frank's RedHot",
"brand": "Frank's",
"scoville_scale": 450,
"ingredients": [
"Aged Cayenne Red Peppers",
"Distilled Vinegar"
],
"flavor_notes": [
"Tangy",
"Spicy"
],
"bottle_size": 12.0,
"price": "3.99"
}
uvicorn fastapi_demo.main:app --reload