Started work on the shop API
This commit is contained in:
parent
1a590254c3
commit
e183f4e8a3
1 changed files with 12 additions and 0 deletions
12
main.py
Normal file
12
main.py
Normal file
|
|
@ -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
|
||||||
Loading…
Reference in a new issue