Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 902 for docs_src (0.04 seconds)

  1. scripts/tests/test_translation_fixer/test_code_includes/data/translated_doc_number_gt.md

    # Header
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[19:21] *}
    
    Some text
    
    {* ../../docs_src/bigger_applications/app_an_py310/internal/admin.py hl[3] title["app/internal/admin.py"] *}
    
    Some more text
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[30:38] hl[31:33] *}
    
    And even more text
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 08:08:04 GMT 2026
    - 370 bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/server-sent-events.md

    从 `fastapi.sse` 导入 `EventSourceResponse`:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    每个被 yield 的项会被编码为 JSON,并放入 SSE 事件的 `data:` 字段发送。
    
    如果你将返回类型声明为 `AsyncIterable[Item]`,FastAPI 将使用它通过 Pydantic对数据进行**校验**、**文档化**和**序列化**。
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[10:12,23] *}
    
    /// tip | 提示
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:29:48 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  3. docs/ko/docs/tutorial/path-params-numeric-validations.md

    **FastAPI**에서는 중요하지 않습니다. 이름, 타입 그리고 기본값 선언(`Query`, `Path` 등)로 매개변수를 감지하며 순서는 신경 쓰지 않습니다.
    
    따라서 함수를 다음과 같이 선언할 수 있습니다:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial002_py310.py hl[7] *}
    
    하지만 `Annotated`를 사용하면 이 문제가 없다는 점을 기억하세요. `Query()`나 `Path()`에 함수 매개변수 기본값을 사용하지 않기 때문에, 순서는 중요하지 않습니다.
    
    {* ../../docs_src/path_params_numeric_validations/tutorial002_an_py310.py *}
    
    ## 필요한 대로 매개변수 정렬하기, 트릭 { #order-the-parameters-as-you-need-tricks }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  4. scripts/tests/test_translation_fixer/test_code_includes/data/en_doc.md

    # Header
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[19:21] *}
    
    Some text
    
    {* ../../docs_src/bigger_applications/app_an_py310/internal/admin.py hl[3] title["app/internal/admin.py"] *}
    
    Some more text
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[30:38] hl[31:33] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 08:08:04 GMT 2026
    - 314 bytes
    - Click Count (0)
  5. docs/en/docs/tutorial/server-sent-events.md

    Import `EventSourceResponse` from `fastapi.sse`:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    Each yielded item is encoded as JSON and sent in the `data:` field of an SSE event.
    
    If you declare the return type as `AsyncIterable[Item]`, FastAPI will use it to **validate**, **document**, and **serialize** the data using Pydantic.
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[10:12,23] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/query-params.md

    # Query Parameters { #query-parameters }
    
    When you declare other function parameters that are not part of the path parameters, they are automatically interpreted as "query" parameters.
    
    {* ../../docs_src/query_params/tutorial001_py310.py hl[9] *}
    
    The query is the set of key-value pairs that go after the `?` in a URL, separated by `&` characters.
    
    For example, in the URL:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  7. docs/ko/docs/tutorial/metadata.md

    예를 들어, 이를 `/api/v1/openapi.json`에서 제공하도록 설정하려면:
    
    {* ../../docs_src/metadata/tutorial002_py310.py hl[3] *}
    
    OpenAPI 스키마를 완전히 비활성화하려면 `openapi_url=None`으로 설정할 수 있으며, 이를 사용하여 문서화 사용자 인터페이스도 비활성화됩니다.
    
    ## 문서화 URL { #docs-urls }
    
    포함된 두 가지 문서화 사용자 인터페이스를 설정할 수 있습니다:
    
    * **Swagger UI**: `/docs`에서 제공됩니다.
        * `docs_url` 매개변수로 URL을 설정할 수 있습니다.
        * `docs_url=None`으로 설정하여 비활성화할 수 있습니다.
    * **ReDoc**: `/redoc`에서 제공됩니다.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  8. docs/zh/docs/advanced/path-operation-advanced-configuration.md

    务必确保每个操作的 `operation_id` 都是唯一的。
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial001_py310.py hl[6] *}
    
    ### 使用 *路径操作函数* 的函数名作为 operationId { #using-the-path-operation-function-name-as-the-operationid }
    
    如果你想用 API 的函数名作为 `operationId`,你可以遍历所有路径操作,并使用它们的 `APIRoute.name` 重写每个 *路径操作* 的 `operation_id`。
    
    你应该在添加了所有 *路径操作* 之后执行此操作。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/advanced/stream-data.md

    {* ../../docs_src/stream_data/tutorial002_py310.py ln[6,19:20] hl[20] *}
    
    接著在路徑操作函式中用 `response_class=PNGStreamingResponse` 使用這個新類別:
    
    {* ../../docs_src/stream_data/tutorial002_py310.py ln[23:27] hl[23] *}
    
    ### 模擬檔案 { #simulate-a-file }
    
    此範例中我們用 `io.BytesIO` 模擬檔案。它是只存在於記憶體中的類檔案物件,但提供相同的介面。
    
    例如,我們可以像讀取一般檔案一樣,透過迭代來消耗其內容。
    
    {* ../../docs_src/stream_data/tutorial002_py310.py ln[1:27] hl[3,12:13,25] *}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:33:04 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial003_py310.py hl[6,11] *}
    
    Otherwise, the path for `/users/{user_id}` would match also for `/users/me`, "thinking" that it's receiving a parameter `user_id` with a value of `"me"`.
    
    Similarly, you cannot redefine a path operation:
    
    {* ../../docs_src/path_params/tutorial003b_py310.py hl[6,11] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 8.8K bytes
    - Click Count (0)
Back to Top