FastAPI - Calculator GET
examples/fastapi/calculator-get/main.py
from fastapi import FastAPI app = FastAPI() @app.get("/") async def main(a: int, b: int): return {"message": a+b}
http://localhost:8000/?a=2&b=3
from fastapi import FastAPI app = FastAPI() @app.get("/") async def main(a: int, b: int): return {"message": a+b}
http://localhost:8000/?a=2&b=3