Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 2,849 for params (0.08 seconds)

  1. docs/zh-hant/docs/tutorial/path-params.md

    注意錯誤也清楚指出驗證未通過的確切位置。
    
    這在開發與除錯與你的 API 互動的程式碼時非常有幫助。
    
    ///
    
    ## 文件 { #documentation }
    
    當你在瀏覽器開啟 [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs),你會看到自動產生、可互動的 API 文件,例如:
    
    <img src="/img/tutorial/path-params/image01.png">
    
    /// check
    
    同樣地,只要使用那個 Python 型別宣告,**FastAPI** 就會提供自動、互動式的文件(整合 Swagger UI)。
    
    注意路徑參數被宣告為整數。
    
    ///
    
    ## 基於標準的優勢與替代文件 { #standards-based-benefits-alternative-documentation }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  2. docs/en/docs/tutorial/path-params.md

    ## Documentation { #documentation }
    
    And when you open your browser at [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs), you will see an automatic, interactive, API documentation like:
    
    <img src="/img/tutorial/path-params/image01.png">
    
    /// check
    
    Again, just with that same Python type declaration, **FastAPI** gives you automatic, interactive documentation (integrating Swagger UI).
    
    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)
  3. docs/zh/docs/tutorial/path-params.md

    注意,上面的错误清晰地指出了未通过校验的具体位置。
    
    这在开发调试与 API 交互的代码时非常有用。
    
    ///
    
    ## 文档 { #documentation }
    
    访问 [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs),查看自动生成的交互式 API 文档:
    
    <img src="/img/tutorial/path-params/image01.png">
    
    /// check | 检查
    
    还是使用 Python 类型声明,**FastAPI** 提供了(集成 Swagger UI 的)自动交互式文档。
    
    注意,路径参数的类型是整数。
    
    ///
    
    ## 基于标准的好处,备选文档 { #standards-based-benefits-alternative-documentation }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  4. docs/ja/docs/tutorial/path-params.md

    これは、APIとやり取りするコードを開発・デバッグする際に非常に役立ちます。
    
    ///
    
    ## ドキュメント { #documentation }
    
    そしてブラウザで [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs) を開くと、以下の様な自動的に生成された対話的なAPIドキュメントが表示されます。
    
    <img src="/img/tutorial/path-params/image01.png">
    
    /// check | 確認
    
    繰り返しになりますが、同じPython型宣言を使用するだけで、**FastAPI**は対話的なドキュメントを自動的に生成します(Swagger UIを統合)。
    
    パスパラメータが整数として宣言されていることに注意してください。
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  5. fastapi/params.py

    from ._compat import (
        Undefined,
    )
    from .datastructures import _Unset
    
    
    class ParamTypes(Enum):
        query = "query"
        header = "header"
        path = "path"
        cookie = "cookie"
    
    
    class Param(FieldInfo):  # type: ignore[misc]
        in_: ParamTypes
    
        def __init__(
            self,
            default: Any = Undefined,
            *,
            default_factory: Callable[[], Any] | None = _Unset,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/body-multiple-params.md

            "username": "dave",
            "full_name": "Dave Grohl"
        },
        "importance": 5
    }
    ```
    
    Again, it will convert the data types, validate, document, etc.
    
    ## Multiple body params and query { #multiple-body-params-and-query }
    
    Of course, you can also declare additional query parameters whenever you need, additional to any body parameters.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:32:12 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  7. docs/de/docs/tutorial/path-params.md

    ## Dokumentation { #documentation }
    
    Wenn Sie die Seite [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs) in Ihrem Browser öffnen, sehen Sie eine automatische, interaktive API-Dokumentation:
    
    <img src="/img/tutorial/path-params/image01.png">
    
    /// check | Testen
    
    Wiederum, mit dieser gleichen Python-Typdeklaration gibt Ihnen **FastAPI** eine automatische, interaktive Dokumentation (verwendet die Swagger-Benutzeroberfläche).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 10K bytes
    - Click Count (0)
  8. docs/zh-hant/docs/tutorial/body-multiple-params.md

            "tax": 3.2
        },
        "user": {
            "username": "dave",
            "full_name": "Dave Grohl"
        },
        "importance": 5
    }
    ```
    
    同樣地,它會進行型別轉換、驗證、文件化等。
    
    ## 多個 Body 參數與 Query { #multiple-body-params-and-query }
    
    當然,你也可以在任何 Body 參數之外,視需要宣告額外的查詢參數。
    
    由於預設情況下,單一值會被解讀為查詢參數,你不必明確使用 `Query`,直接這樣寫即可:
    
    ```Python
    q: str | None = None
    ```
    
    例如:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  9. docs/de/docs/tutorial/query-params.md

    * `skip`, ein `int` mit einem Defaultwert `0`.
    * `limit`, ein optionales `int`.
    
    /// tip | Tipp
    
    Sie können auch `Enum`s verwenden, auf die gleiche Weise wie mit [Pfad-Parametern](path-params.md#predefined-values).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  10. docs/zh/docs/tutorial/query-params.md

    {* ../../docs_src/query_params/tutorial006_py310.py hl[8] *}
    
    本例中有 3 个查询参数:
    
    * `needy`,必选的 `str` 类型参数
    * `skip`,默认值为 `0` 的 `int` 类型参数
    * `limit`,可选的 `int` 类型参数
    
    /// tip | 提示
    
    还可以像在[路径参数](path-params.md#predefined-values)中那样使用 `Enum`。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 4.2K bytes
    - Click Count (0)
Back to Top