Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for http (0.12 sec)

  1. docs/ko/docs/tutorial/query-params-str-validations.md

    예를 들어, URL에서 여러번 나오는  `q` 쿼리 매개변수를 선언하려면 다음과 같이 작성할 수 있습니다:
    
    ```Python hl_lines="9"
    {!../../../docs_src/query_params_str_validations/tutorial011.py!}
    ```
    
    아래와 같은 URL을 사용합니다:
    
    ```
    http://localhost:8000/items/?q=foo&q=bar
    ```
    
    여러 `q` *쿼리 매개변수* 값들을 (`foo` 및 `bar`) 파이썬 `list`로 *경로 작동 함수* 내 *함수 매개변수* `q`로 전달 받습니다.
    
    따라서 해당 URL에 대한 응답은 다음과 같습니다:
    
    ```JSON
    {
      "q": [
        "foo",
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Feb 11 13:48:31 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/query-params-str-validations.md

            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="9"
        {!> ../../../docs_src/query_params_str_validations/tutorial011.py!}
        ```
    
    Then, with a URL like:
    
    ```
    http://localhost:8000/items/?q=foo&q=bar
    ```
    
    you would receive the multiple `q` *query parameters'* values (`foo` and `bar`) in a Python `list` inside your *path operation function*, in the *function parameter* `q`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 25.7K bytes
    - Viewed (0)
  3. docs/fr/docs/tutorial/query-params-str-validations.md

    ```Python hl_lines="9"
    {!../../../docs_src/query_params_str_validations/tutorial011.py!}
    ```
    
    Ce qui fait qu'avec une URL comme :
    
    ```
    http://localhost:8000/items/?q=foo&q=bar
    ```
    
    vous recevriez les valeurs des multiples paramètres de requête `q` (`foo` et `bar`) dans une `list` Python au sein de votre fonction de **path operation**, dans le paramètre de fonction `q`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jul 27 18:53:21 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/query-params-str-validations.md

        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="7"
        {!> ../../../docs_src/query_params_str_validations/tutorial011_py310.py!}
        ```
    
    ⤴️, ⏮️ 📛 💖:
    
    ```
    http://localhost:8000/items/?q=foo&q=bar
    ```
    
    👆 🔜 📨 💗 `q` *🔢 🔢'* 💲 (`foo` & `bar`) 🐍 `list` 🔘 👆 *➡ 🛠️ 🔢*, *🔢 🔢* `q`.
    
    , 📨 👈 📛 🔜:
    
    ```JSON
    {
      "q": [
        "foo",
        "bar"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/query-params-str-validations.md

    交互式 API 文档将会相应地进行更新,以允许使用多个值:
    
    <img src="https://fastapi.tiangolo.com/img/tutorial/query-params-str-validations/image02.png">
    
    ### 具有默认值的查询参数列表 / 多个值
    
    你还可以定义在没有任何给定值时的默认 `list` 值:
    
    ```Python hl_lines="9"
    {!../../../docs_src/query_params_str_validations/tutorial012.py!}
    ```
    
    如果你访问:
    
    ```
    http://localhost:8000/items/
    ```
    
    `q` 的默认值将为:`["foo", "bar"]`,你的响应会是:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/query-params-str-validations.md

        ```Python hl_lines="9"
        {!> ../../../docs_src/query_params_str_validations/tutorial011.py!}
        ```
    
    Затем, получив такой URL:
    
    ```
    http://localhost:8000/items/?q=foo&q=bar
    ```
    
    вы бы получили несколько значений (`foo` и `bar`), которые относятся к параметру `q`, в виде Python `list` внутри вашей *функции обработки пути*, в *параметре функции* `q`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 38K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/query-params-str-validations.md

            Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
        ```Python hl_lines="9"
        {!> ../../../docs_src/query_params_str_validations/tutorial011.py!}
        ```
    
    Dann, mit einer URL wie:
    
    ```
    http://localhost:8000/items/?q=foo&q=bar
    ```
    
    bekommen Sie alle `q`-*Query-Parameter*-Werte (`foo` und `bar`) in einer Python-Liste – `list` – in ihrer *Pfadoperation-Funktion*, im Funktionsparameter `q`, überreicht.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 17:58:59 GMT 2024
    - 27.7K bytes
    - Viewed (0)
Back to top