Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.29 KB

README.md

File metadata and controls

44 lines (34 loc) · 1.29 KB

pre-commit Code style: black Imports: isort GitHub last commit security: bandit

Hot Sauce API

A test project to learn FastAPI by creating a hot sauce API!

Usage

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"
}

Developing

uvicorn fastapi_demo.main:app --reload