Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 291 - 300 of 316 for item_2 (0.13 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/uk/docs/tutorial/response-model.md

    ```Python hl_lines="3  5"
    {
        "name": "Bar",
        "description": "The bartenders",
        "price": 62,
        "tax": 20.2
    }
    ```
    вони будуть включені у відповідь.
    
    #### Дані з тими самими значеннями, що й типові
    
    Якщо дані мають ті самі значення, що й типові, як у елемента з item_id `baz`:
    
    ```Python hl_lines="3  5-6"
    {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Jun 24 19:14:01 GMT 2025
    - 24.8K bytes
    - Click Count (0)
  2. docs_src/security/tutorial004_an_py39.py

    async def read_users_me(
        current_user: Annotated[User, Depends(get_current_active_user)],
    ):
        return current_user
    
    
    @app.get("/users/me/items/")
    async def read_own_items(
        current_user: Annotated[User, Depends(get_current_active_user)],
    ):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Sep 29 02:57:38 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  3. docs/pt/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    {* ../../docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py hl[2:3,6,12,21:22] *}
    
    No exemplo acima, o modelo de entrada é um modelo Pydantic v1, e o modelo de saída (definido em `response_model=ItemV2`) é um modelo Pydantic v2.
    
    ### Parâmetros do Pydantic v1 { #pydantic-v1-parameters }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  4. docs/es/docs/tutorial/bigger-applications.md

    ///
    
    ## Otro módulo con `APIRouter` { #another-module-with-apirouter }
    
    Digamos que también tienes los endpoints dedicados a manejar "items" de tu aplicación en el módulo `app/routers/items.py`.
    
    Tienes *path operations* para:
    
    * `/items/`
    * `/items/{item_id}`
    
    Es toda la misma estructura que con `app/routers/users.py`.
    
    Pero queremos ser más inteligentes y simplificar un poco el código.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 19.6K bytes
    - Click Count (0)
  5. docs/pt/docs/tutorial/bigger-applications.md

    {* ../../docs_src/bigger_applications/app_an_py39/routers/items.py hl[5:10,16,21] title["app/routers/items.py"] *}
    
    Como o caminho de cada *operação de rota* deve começar com `/`, como em:
    
    ```Python hl_lines="1"
    @router.get("/{item_id}")
    async def read_item(item_id: str):
        ...
    ```
    
    ...o prefixo não deve incluir um `/` final.
    
    Então, o prefixo neste caso é `/items`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 20:32:40 GMT 2025
    - 19.7K bytes
    - Click Count (0)
  6. docs_src/security/tutorial005_py310.py

    async def read_users_me(current_user: User = Depends(get_current_active_user)):
        return current_user
    
    
    @app.get("/users/me/items/")
    async def read_own_items(
        current_user: User = Security(get_current_active_user, scopes=["items"]),
    ):
        return [{"item_id": "Foo", "owner": current_user.username}]
    
    
    @app.get("/status/")
    async def read_system_status(current_user: User = Depends(get_current_user)):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Sep 29 02:57:38 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  7. docs/ja/docs/python-types.md

    /// tip | 豆知識
    
    角括弧内の内部の型は「型パラメータ」と呼ばれています。
    
    この場合、`str`は`List`に渡される型パラメータです。
    
    ///
    
    つまり: 変数`items`は`list`であり、このリストの各項目は`str`です。
    
    そうすることで、エディタはリストの項目を処理している間にもサポートを提供できます。
    
    <img src="https://fastapi.tiangolo.com/img/python-types/image05.png">
    
    タイプがなければ、それはほぼ不可能です。
    
    変数`item`はリスト`items`の要素の一つであることに注意してください。
    
    それでも、エディタはそれが`str`であることを知っていて、そのためのサポートを提供しています。
    
    #### `Tuple` と `Set`
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 11.6K bytes
    - Click Count (0)
  8. fastapi/param_functions.py

        from typing import Annotated
    
        from fastapi import FastAPI, Path
    
        app = FastAPI()
    
    
        @app.get("/items/{item_id}")
        async def read_items(
            item_id: Annotated[int, Path(title="The ID of the item to get")],
        ):
            return {"item_id": item_id}
        ```
        """
        return params.Path(
            default=default,
            default_factory=default_factory,
            alias=alias,
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 63K bytes
    - Click Count (0)
  9. docs/en/docs/deployment/docker.md

    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 }
    
    Now in the same project directory create a file `Dockerfile` with:
    
    ```{ .dockerfile .annotate }
    # (1)!
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Sep 20 12:58:04 GMT 2025
    - 29.5K bytes
    - Click Count (1)
  10. docs_src/security/tutorial005_py39.py

    async def read_users_me(current_user: User = Depends(get_current_active_user)):
        return current_user
    
    
    @app.get("/users/me/items/")
    async def read_own_items(
        current_user: User = Security(get_current_active_user, scopes=["items"]),
    ):
        return [{"item_id": "Foo", "owner": current_user.username}]
    
    
    @app.get("/status/")
    async def read_system_status(current_user: User = Depends(get_current_user)):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Sep 29 02:57:38 GMT 2025
    - 5.3K bytes
    - Click Count (0)
Back to Top