Skip to content

mason3k/hotsauce-api

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages