You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
218 B

  1. from fastapi import FastAPI
  2. app = FastAPI()
  3. @app.get("/")
  4. def root():
  5. return {"message": "Hello World!"}
  6. @app.get("/user")
  7. def get_users():
  8. return {
  9. {"name": "almaz"},
  10. {"name": "madi"}
  11. }