- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 131 for Ball (0.14 sec)
-
docs/en/docs/tutorial/body-fields.md
```Python hl_lines="4" {!> ../../../docs_src/body_fields/tutorial001.py!} ``` !!! warning Notice that `Field` is imported directly from `pydantic`, not from `fastapi` as are all the rest (`Query`, `Path`, `Body`, etc). ## Declare model attributes You can then use `Field` with model attributes: === "Python 3.10+" ```Python hl_lines="11-14"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 3.6K bytes - Viewed (0) -
docs/en/docs/advanced/security/index.md
## Read the Tutorial first The next sections assume you already read the main [Tutorial - User Guide: Security](../../tutorial/security/index.md){.internal-link target=_blank}.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Mar 31 23:52:53 GMT 2024 - 633 bytes - Viewed (0) -
scripts/playwright/separate_openapi_schemas/image03.py
page.goto("http://localhost:8000/docs") page.get_by_text("GET/items/Read Items").click() page.get_by_role("tab", name="Schema").click() page.get_by_label("Schema").get_by_role("button", name="Expand all").click() page.screenshot( path="docs/en/docs/img/tutorial/separate-openapi-schemas/image03.png" ) # --------------------- context.close() browser.close()
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Aug 25 19:10:22 GMT 2023 - 892 bytes - Viewed (0) -
docs/de/docs/advanced/openapi-callbacks.md
In diesem Fall möchten Sie möglicherweise dokumentieren, wie diese externe API aussehen *sollte*. Welche *Pfadoperation* sie haben sollte, welchen Body sie erwarten sollte, welche Response sie zurückgeben sollte, usw. ## Eine Anwendung mit Callbacks
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:17:23 GMT 2024 - 8.8K bytes - Viewed (0) -
docs/de/docs/tutorial/middleware.md
## Erstellung einer Middleware Um eine Middleware zu erstellen, verwenden Sie den Dekorator `@app.middleware("http")` über einer Funktion. Die Middleware-Funktion erhält: * Den `request`. * Eine Funktion `call_next`, die den `request` als Parameter erhält. * Diese Funktion gibt den `request` an die entsprechende *Pfadoperation* weiter. * Dann gibt es die von der entsprechenden *Pfadoperation* generierte `response` zurück.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 23 11:26:59 GMT 2024 - 3.4K bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/sub-dependencies.md
``` ## Zusammenfassung Abgesehen von all den ausgefallenen Wörtern, die hier verwendet werden, ist das **Dependency Injection**-System recht simpel. Einfach Funktionen, die genauso aussehen wie *Pfadoperation-Funktionen*. Dennoch ist es sehr mächtig und ermöglicht Ihnen die Deklaration beliebig tief verschachtelter Abhängigkeits-„Graphen“ (Bäume). !!! tip "Tipp"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:09:48 GMT 2024 - 6.3K bytes - Viewed (0) -
docs_src/security/tutorial003_an_py39.py
def get_user(db, username: str): if username in db: user_dict = db[username] return UserInDB(**user_dict) def fake_decode_token(token): # This doesn't provide any security at all # Check the next version user = get_user(fake_users_db, token) return user async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]): user = fake_decode_token(token)
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 2.5K bytes - Viewed (0) -
docs/uk/docs/tutorial/index.md
## Встановлення FastAPI Першим кроком є встановлення FastAPI. Для туторіалу ви можете встановити його з усіма необов’язковими залежностями та функціями: <div class="termy"> ```console $ pip install "fastapi[all]" ---> 100% ``` </div> ...який також включає `uvicorn`, який ви можете використовувати як сервер, який запускає ваш код. !!! note Ви також можете встановити його частина за частиною.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Sep 02 15:29:36 GMT 2023 - 4.4K bytes - Viewed (0) -
docs/pt/docs/tutorial/index.md
## Instale o FastAPI O primeiro passo é instalar o FastAPI. Para o tutorial, você deve querer instalá-lo com todas as dependências e recursos opicionais. <div class="termy"> ```console $ pip install "fastapi[all]" ---> 100% ``` </div> ...isso também inclui o `uvicorn`, que você pode usar como o servidor que rodará seu código. !!! note "Nota" Você também pode instalar parte por parte.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 2.8K bytes - Viewed (0) -
tests/test_tutorial/test_extra_models/test_tutorial003_py310.py
@needs_py310 def test_get_car(client: TestClient): response = client.get("/items/item1") assert response.status_code == 200, response.text assert response.json() == { "description": "All my friends drive a low rider", "type": "car", } @needs_py310 def test_get_plane(client: TestClient): response = client.get("/items/item2") assert response.status_code == 200, response.text
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Aug 04 20:47:07 GMT 2023 - 5.3K bytes - Viewed (0)