Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 231 - 237 of 237 for item_1 (0.05 seconds)

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

  1. docs/zh/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    ```
    
    在某些情况下,甚至可以在 FastAPI 应用的同一个路径操作中同时使用 Pydantic v1 和 v2 模型:
    
    {* ../../docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py hl[2:3,6,12,21:22] *}
    
    在上面的示例中,输入模型是 Pydantic v1 模型,输出模型(在 `response_model=ItemV2` 中定义)是 Pydantic v2 模型。
    
    ### Pydantic v1 参数 { #pydantic-v1-parameters }
    
    如果你需要在 Pydantic v1 模型中使用 FastAPI 特有的参数工具,如 `Body`、`Query`、`Form` 等,在完成向 Pydantic v2 的迁移前,可以从 `fastapi.temp_pydantic_v1_params` 导入它们:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  2. docs/ja/docs/tutorial/bigger-applications.md

    アプリケーションの「items」を扱うエンドポイントが `app/routers/items.py` のモジュールにあるとします。
    
    次の *path operations* があります:
    
    * `/items/`
    * `/items/{item_id}`
    
    構造は `app/routers/users.py` と同じです。
    
    しかし、もう少し賢くしてコードを少し簡潔にしたいところです。
    
    このモジュールのすべての *path operations* には同じものがあると分かっています:
    
    * パスの `prefix`: `/items`
    * `tags`(1つのタグ: `items`)
    * 追加の `responses`
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  3. docs/ja/docs/deployment/docker.md

    ```Python
    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: str | None = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile { #dockerfile }
    
    同じプロジェクト・ディレクトリに`Dockerfile`というファイルを作成します:
    
    ```{ .dockerfile .annotate }
    # (1)!
    FROM python:3.14
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 36.8K bytes
    - Click Count (0)
  4. fastapi/applications.py

            from pydantic import BaseModel
    
            class Item(BaseModel):
                name: str
                description: str | None = None
    
            app = FastAPI()
    
            @app.put("/items/{item_id}")
            def replace_item(item_id: str, item: Item):
                return {"message": "Item replaced", "id": item_id}
            ```
            """
            return self.router.put(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 01 16:16:24 GMT 2026
    - 178.6K bytes
    - Click Count (0)
  5. docs/ko/docs/advanced/generate-clients.md

    ### 클라이언트 생성기를 위한 OpenAPI 사양 전처리 { #preprocess-the-openapi-specification-for-the-client-generator }
    
    생성된 코드에는 여전히 일부 **중복 정보**가 있습니다.
    
    `ItemsService`(태그에서 가져옴)에 이미 **items**가 포함되어 있어 이 메서드가 items와 관련되어 있음을 알 수 있지만, 메서드 이름에도 태그 이름이 접두사로 붙어 있습니다. 😕
    
    OpenAPI 전반에서는 operation ID가 **유일**하다는 것을 보장하기 위해 이 방식을 유지하고 싶을 수 있습니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 11K bytes
    - Click Count (0)
  6. docs/changelogs/changelog_2x.md

     * Add ALPN support. Maven will use ALPN on OpenJDK 8.
     * Update NPN dependency to target `jdk7u60-b13` and `Oracle jdk7u55-b13`.
     * Ensure SPDY variants support zero-length DELETE and POST.
     * Prevent leaking a cache item's InputStreams when metadata read fails.
     * Use a string to identify TLS versions in routes.
     * Add frame logger for HTTP/2.
     * Replacing `httpMinorVersion` with `Protocol`. Expose HTTP/1.0 as a potential protocol.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Click Count (0)
  7. docs/en/docs/release-notes.md

    
    @app.get("/items/")
    def read_items(user: CurrentUser):
        ...
    
    
    @app.post("/items/")
    def create_item(user: CurrentUser, item: Item):
        ...
    
    
    @app.get("/items/{item_id}")
    def read_item(user: CurrentUser, item_id: int):
        ...
    
    
    @app.delete("/items/{item_id}")
    def delete_item(user: CurrentUser, item_id: int):
        ...
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Apr 03 12:07:04 GMT 2026
    - 631K bytes
    - Click Count (0)
Back to Top