- from fastapi import FastAPI
- from typing import Union
- import uvicorn
- app = FastAPI()
- @app.get("/items/")
- def ReadCalls(
- Ani: str,
- NationalCode: str,
- DeviceNumber: str
- ):
- print("hggg")
- print(Ani)
- print(DeviceNumber)
- print(NationalCode)
- return("Ani")
- if __name__ == "__main__":
- uvicorn.run(app,host='0.0.0.0', port=8080)
Recent Pastes