TEXT 62
PyApi-Reza Guest on 24th December 2024 09:47:01 AM
  1. from fastapi import FastAPI
  2. from typing import Union
  3. import uvicorn
  4.  
  5.  
  6. app = FastAPI()
  7.  
  8.  
  9.  
  10. @app.get("/items/")
  11. def ReadCalls(
  12.     Ani: str,
  13.     NationalCode: str,
  14.     DeviceNumber: str
  15. ):
  16.     print("hggg")
  17.     print(Ani)
  18.     print(DeviceNumber)
  19.     print(NationalCode)
  20.     return("Ani")
  21.  
  22. if __name__ == "__main__":
  23.     uvicorn.run(app,host='0.0.0.0', port=8080)

Hightechrobo bin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.