- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 199 for def2 (0.03 sec)
-
docs/ko/docs/features.md
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Nov 09 16:39:20 UTC 2024 - 11.8K bytes - Viewed (0) -
docs/en/docs/advanced/custom-response.md
/// tip Notice that here as we are using standard `open()` that doesn't support `async` and `await`, we declare the path operation with normal `def`. /// ### `FileResponse` { #fileresponse } Asynchronously streams a file as the response. Takes a different set of arguments to instantiate than the other response types:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 12.2K bytes - Viewed (0) -
docs/en/docs/release-notes.md
```Python def get_current_user(token: str): # authenticate user return User() @app.get("/items/") def read_items(user: User = Depends(get_current_user)): ... @app.post("/items/") def create_item(*, user: User = Depends(get_current_user), item: Item): ... @app.get("/items/{item_id}")
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri Sep 05 12:48:45 UTC 2025 - 544.1K bytes - Viewed (0) -
docs/en/docs/tutorial/bigger-applications.md
{!../../docs_src/bigger_applications/app/routers/items.py!} ``` As the path of each *path operation* has to start with `/`, like in: ```Python hl_lines="1" @router.get("/{item_id}") async def read_item(item_id: str): ... ``` ...the prefix must not include a final `/`. So, the prefix in this case is `/items`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 19.1K bytes - Viewed (0) -
docs/en/docs/deployment/docker.md
* Create a `main.py` file with: ```Python from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} ``` ### Dockerfile { #dockerfile }
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 29.5K bytes - Viewed (1) -
docs/pt/docs/deployment/docker.md
* Crie um arquivo `main.py` com: ```Python from typing import Optional from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} ``` ### Dockerfile
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Nov 09 16:39:20 UTC 2024 - 37.4K bytes - Viewed (0) -
docs/pt/docs/advanced/custom-response.md
/// tip | Dica Perceba que aqui estamos utilizando o `open()` da biblioteca padrão que não suporta `async` e `await`, e declaramos a operação de rota com o `def` básico. /// ### `FileResponse` Envia um arquivo de forma assíncrona e contínua (stream). * Recebe um conjunto de argumentos do construtor diferente dos outros tipos de resposta:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 13.2K bytes - Viewed (0) -
docs/ru/docs/alternatives.md
```Python response = requests.get("http://example.com/some/url") ``` Противоположная *операция пути* в FastAPI может выглядеть следующим образом: ```Python hl_lines="1" @app.get("/some/url") def read_url(): return {"message": "Hello World"} ``` Глядите, как похоже `requests.get(...)` и `@app.get(...)`. /// check | Идеи для **FastAPI** * Должен быть простой и понятный API.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Nov 09 16:39:20 UTC 2024 - 39.3K bytes - Viewed (0) -
docs/tr/docs/alternatives.md
```Python response = requests.get("http://example.com/some/url") ``` Bunun FastAPI'deki API <abbr title="Yol İşlemi: Path Operation">*yol işlemi*</abbr> şöyle görünür: ```Python hl_lines="1" @app.get("/some/url") def read_url(): return {"message": "Hello World!"} ``` `requests.get(...)` ile `@app.get(...)` arasındaki benzerliklere bakın. /// check | **FastAPI**'a nasıl ilham verdi?
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Nov 09 16:39:20 UTC 2024 - 28.7K bytes - Viewed (0) -
docs/ru/docs/deployment/docker.md
* Создайте файл `main.py` и заполните его: ```Python from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} ``` ### Dockerfile
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Thu Dec 12 22:48:28 UTC 2024 - 57.6K bytes - Viewed (0)