Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for json (0.23 sec)

  1. docs/pt/docs/tutorial/body-multiple-params.md

    ## Múltiplos parâmetros de corpo
    
    No exemplo anterior, as *operações de rota* esperariam um JSON no corpo contendo os atributos de um `Item`, exemplo:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/body-multiple-params.md

    {!../../../docs_src/body_multiple_params/tutorial001.py!}
    ```
    
    !!! note "備考"
        この場合、ボディから取得する`item`はオプションであることに注意してください。デフォルト値は`None`です。
    
    ## 複数のボディパラメータ
    
    上述の例では、*path operations*は`item`の属性を持つ以下のようなJSONボディを期待していました:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    しかし、`item`と`user`のように複数のボディパラメータを宣言することもできます:
    
    ```Python hl_lines="22"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 15 15:48:41 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/body-multiple-params.md

    ## Multiple body parameters
    
    In the previous example, the *path operations* would expect a JSON body with the attributes of an `Item`, like:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    But you can also declare multiple body parameters, e.g. `item` and `user`:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/body-multiple-params.md

    ## Mehrere Body-Parameter
    
    Im vorherigen Beispiel erwartete die *Pfadoperation* einen JSON-Body mit den Attributen eines `Item`s, etwa:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    Aber Sie können auch mehrere Body-Parameter deklarieren, z. B. `item` und `user`:
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 29 17:32:43 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/body-multiple-params.md

        ```
    
    👉 💼 **FastAPI** 🔜 ⌛ 💪 💖:
    
    ```JSON hl_lines="2"
    {
        "item": {
            "name": "Foo",
            "description": "The pretender",
            "price": 42.0,
            "tax": 3.2
        }
    }
    ```
    
    ↩️:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 5K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/body-multiple-params.md

        {!> ../../../docs_src/body_multiple_params/tutorial001.py!}
        ```
    
    !!! note
        请注意,在这种情况下,将从请求体获取的 `item` 是可选的。因为它的默认值为 `None`。
    
    ## 多个请求体参数
    
    在上面的示例中,*路径操作*将期望一个具有 `Item` 的属性的 JSON 请求体,就像:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    但是你也可以声明多个请求体参数,例如 `item` 和 `user`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="20"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/body-multiple-params.md

    {!../../../docs_src/body_multiple_params/tutorial001.py!}
    ```
    
    !!! note "참고"
        이 경우에는 본문으로 부터 가져온 `	item`은 기본값이 `None`이기 때문에, 선택사항이라는 점을 유의해야 합니다.
    
    ## 다중 본문 매개변수
    
    이전 예제에서 보듯이, *경로 작동*은 아래와 같이 `Item` 속성을 가진 JSON 본문을 예상합니다:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    하지만, 다중 본문 매개변수 역시 선언할 수 있습니다. 예. `item`과 `user`:
    
    ```Python hl_lines="22"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Feb 11 13:48:31 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/body-multiple-params.md

    ## Несколько параметров тела запроса
    
    В предыдущем примере, *операции пути* ожидали тело запроса в формате JSON-тело с  параметрами, соответствующими атрибутам `Item`, например:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
Back to top