From e183f4e8a33aaecc7e75e3de7cf6b9f3112ff754 Mon Sep 17 00:00:00 2001 From: Yarne Coppens Date: Sun, 4 Aug 2024 08:43:04 +0200 Subject: [PATCH] Started work on the shop API --- main.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..4bfb613 --- /dev/null +++ b/main.py @@ -0,0 +1,12 @@ +from fastapi import FastAPI + +app = FastAPI() + +@app.get("/") +def read_root(): + return {"Hello": "World"} + +# @app.get("/boardgame/{boardgame_id}", response_model=boardgame_classes.BoardGame) +# def get_boardgame_by_id(boardgame_id: int): +# requested_boardgame: boardgame_classes.BoardGame = data_connection.get_boardgame(boardgame_id) +# return requested_boardgame \ No newline at end of file