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.

main.py 218 B

1 year ago
1 year ago
1 year ago
1 year ago
1234567891011121314
  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. }