- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 564 for users4 (0.09 sec)
-
tests/update_many2many_test.go
} var user3 User DB.Preload("Languages").Preload("Friends").Find(&user3, "id = ?", user.ID) CheckUser(t, user2, user3) if err := DB.Session(&gorm.Session{FullSaveAssociations: true}).Save(&user).Error; err != nil { t.Fatalf("errors happened when update: %v", err) } var user4 User DB.Preload("Languages").Preload("Friends").Find(&user4, "id = ?", user.ID) CheckUser(t, user4, user)
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 1.3K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-models.md
/// ### About `**user_in.dict()` #### Pydantic's `.dict()` `user_in` is a Pydantic model of class `UserIn`. Pydantic models have a `.dict()` method that returns a `dict` with the model's data. So, if we create a Pydantic object `user_in` like: ```Python user_in = UserIn(username="john", password="secret", email="******@****.***") ``` and then we call: ```Python
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.7K bytes - Viewed (0) -
docs_src/path_params/tutorial003.py
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 236 bytes - Viewed (0) -
docs_src/path_params/tutorial003b.py
from fastapi import FastAPI app = FastAPI() @app.get("/users") async def read_users(): return ["Rick", "Morty"] @app.get("/users") async def read_users2():
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu May 12 16:16:16 UTC 2022 - 193 bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial001_an.py
("/items?q=foo&skip=5", 200, {"q": "foo", "skip": 5, "limit": 100}), ("/items?q=foo&skip=5&limit=30", 200, {"q": "foo", "skip": 5, "limit": 30}), ("/users", 200, {"q": None, "skip": 0, "limit": 100}), ], ) def test_get(path, expected_status, expected_response): response = client.get(path) assert response.status_code == expected_status
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 7.1K bytes - Viewed (0) -
.mailmap
Ryan <******@****.***> <******@****.***> Rodrigo B. de Oliveira <******@****.***> <******@****.***> Sebastian Schuberth <******@****.***> <sschuberth@users.noreply.github.com> Stefan Oehme <******@****.***> <******@****.***> Sterling Greene <******@****.***> <big-guy@users.noreply.github.com> Sterling Greene <******@****.***> <******@****.***> Szczepan Faber <******@****.***>
Registered: Wed Oct 30 11:36:09 UTC 2024 - Last Modified: Tue Oct 03 06:34:28 UTC 2017 - 3.3K bytes - Viewed (0) -
docs_src/bigger_applications/app/main.py
from fastapi import Depends, FastAPI from .dependencies import get_query_token, get_token_header from .internal import admin from .routers import items, users app = FastAPI(dependencies=[Depends(get_query_token)]) app.include_router(users.router) app.include_router(items.router) app.include_router( admin.router, prefix="/admin", tags=["admin"], dependencies=[Depends(get_token_header)],
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Nov 29 17:32:18 UTC 2020 - 552 bytes - Viewed (0) -
docs_src/dependency_testing/tutorial001_an_py39.py
@app.get("/items/") async def read_items(commons: Annotated[dict, Depends(common_parameters)]): return {"message": "Hello Items!", "params": commons} @app.get("/users/") async def read_users(commons: Annotated[dict, Depends(common_parameters)]): return {"message": "Hello Users!", "params": commons} client = TestClient(app) async def override_dependency(q: Union[str, None] = None): return {"q": q, "skip": 5, "limit": 10}
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 1.5K bytes - Viewed (0) -
docs_src/path_operation_configuration/tutorial002_py39.py
async def create_item(item: Item): return item @app.get("/items/", tags=["items"]) async def read_items(): return [{"name": "Foo", "price": 42}] @app.get("/users/", tags=["users"]) async def read_users():
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 575 bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial001_an_py310.py
("/items?q=foo&skip=5", 200, {"q": "foo", "skip": 5, "limit": 100}), ("/items?q=foo&skip=5&limit=30", 200, {"q": "foo", "skip": 5, "limit": 30}), ("/users", 200, {"q": None, "skip": 0, "limit": 100}), ], ) def test_get(path, expected_status, expected_response, client: TestClient): response = client.get(path) assert response.status_code == expected_status
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 7.2K bytes - Viewed (0)