first commit

This commit is contained in:
Quentin Leblanc 2025-05-22 15:30:10 +02:00
commit 92ba75194e
6 changed files with 25 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.idea/

0
README.md Normal file
View File

13
main.py Normal file
View File

@ -0,0 +1,13 @@
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def root():
return {"message": "Hello World"}
@app.get("/hello/{name}")
async def say_hello(name: str):
return {"message": f"Hello {name}"}

0
src/__init__.py Normal file
View File

0
test/__init__.py Normal file
View File

11
test_main.http Normal file
View File

@ -0,0 +1,11 @@
# Test your FastAPI endpoints
GET http://127.0.0.1:8000/
Accept: application/json
###
GET http://127.0.0.1:8000/hello/User
Accept: application/json
###