from typing import Union
import uvicorn
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def helloworld():
return {"Hello": "World"}
@app.get("/items/{item_id}")
def read_item(item_id: int, q: Union[str, None] = None):
return {"item_id": item_id, "q": q}
if _name_ == "__main__":
uvicorn.run(app, host="127.0.0.1", port=5049)
En esta página del sitio puede ver el video en línea FASTAPI in Python | Create REST API using FASTAPI framework in python | SWAGGER UI de Duración hora minuto segunda en buena calidad , que subió el usuario Azure Content : Annu 19 septiembre 2025, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 458 veces y le gustó 22 a los espectadores. Disfruta viendo!