diff --git a/sql_app/main.py b/sql_app/main.py index 1f7f63b..f06c7ba 100644 --- a/sql_app/main.py +++ b/sql_app/main.py @@ -50,7 +50,7 @@ def create_item_for_user( return crud.create_user_item(db=db, item=item, user_id=user_id) -@app.get("/items/", response_model=list[schemas.IotEntity]) +@app.get("/items/", response_model=List[schemas.IotEntity]) def read_items(skip: int = 0, limit: int = 100, db: Session = Depends(get_db)): items = crud.get_items(db, skip=skip, limit=limit) return items