Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 80 for 27 (0.17 sec)

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

    ```Python
    q: Union[str, None] = None
    ```
    
    ⚖️ 🐍 3️⃣.1️⃣0️⃣ & 🔛:
    
    ```Python
    q: str | None = None
    ```
    
    🖼:
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="27"
        {!> ../../../docs_src/body_multiple_params/tutorial004.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="26"
        {!> ../../../docs_src/body_multiple_params/tutorial004_py310.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 5K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/body-multiple-params.md

    ## 複数のボディパラメータとクエリ
    
    もちろん、ボディパラメータに加えて、必要に応じて追加のクエリパラメータを宣言することもできます。
    
    デフォルトでは、単数値はクエリパラメータとして解釈されるので、明示的に `Query` を追加する必要はありません。
    
    ```Python
    q: str = None
    ```
    
    以下において:
    
    ```Python hl_lines="27"
    {!../../../docs_src/body_multiple_params/tutorial004.py!}
    ```
    
    !!! info "情報"
        `Body`もまた、後述する `Query` や `Path` などと同様に、すべての検証パラメータとメタデータパラメータを持っています。
    
    
    ## 単一のボディパラメータの埋め込み
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 15 15:48:41 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/security/get-current-user.md

    === "Python 3.10+"
    
        ```Python hl_lines="19-22  26-27"
        {!> ../../../docs_src/security/tutorial002_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="19-22  26-27"
        {!> ../../../docs_src/security/tutorial002_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="20-23  27-28"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:08:05 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/body-multiple-params.md

    Или в Python 3.10 и выше:
    
    ```Python
    q: str | None = None
    ```
    
    Например:
    
    === "Python 3.10+"
    
        ```Python hl_lines="27"
        {!> ../../../docs_src/body_multiple_params/tutorial004_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="27"
        {!> ../../../docs_src/body_multiple_params/tutorial004_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="28"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  5. docs/ja/docs/advanced/custom-response.md

    例えば、パフォーマンスを出したい場合は、<a href="https://github.com/ijl/orjson" class="external-link" target="_blank">`orjson`</a>をインストールし、`ORJSONResponse`をレスポンスとしてセットすることができます。
    
    使いたい `Response` クラス (サブクラス) をインポートし、 *path operationデコレータ* に宣言します。
    
    ```Python hl_lines="2  7"
    {!../../../docs_src/custom_response/tutorial001b.py!}
    ```
    
    !!! info "情報"
        パラメータ `response_class` は、レスポンスの「メディアタイプ」を定義するために利用することもできます。
    
        この場合、HTTPヘッダー `Content-Type` には `application/json` がセットされます。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jul 19 19:14:58 GMT 2021
    - 10.7K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/path-operation-configuration.md

    === "Python 3.8 and above"
    
        ```Python hl_lines="19-27"
        {!> ../../../docs_src/path_operation_configuration/tutorial004.py!}
        ```
    
    === "Python 3.9 and above"
    
        ```Python hl_lines="19-27"
        {!> ../../../docs_src/path_operation_configuration/tutorial004_py39.py!}
        ```
    
    === "Python 3.10 and above"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/custom-response.md

    ```Python hl_lines="2  7"
    {!../../../docs_src/custom_response/tutorial001b.py!}
    ```
    
    !!! info
        The parameter `response_class` will also be used to define the "media type" of the response.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  8. docs/pl/docs/index.md

    ## Aktualizacja przykładu
    
    Zmodyfikuj teraz plik `main.py`, aby otrzmywał treść (body) żądania `PUT`.
    
    Zadeklaruj treść żądania, używając standardowych typów w Pythonie dzięki Pydantic.
    
    ```Python hl_lines="4  9-12  25-27"
    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  9. docs/ru/docs/index.md

    ## Пример обновления
    
    Теперь измените файл `main.py`, чтобы получить тело ответа из `PUT` запроса.
    
    Объявите тело, используя стандартную типизацию Python, спасибо Pydantic.
    
    ```Python hl_lines="4  9-12  25-27"
    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  10. docs/it/docs/index.md

    ## Esempio più avanzato
    
    Adesso modifica il file `main.py` per ricevere un _body_ da una richiesta `PUT`.
    
    Dichiara il _body_ usando le annotazioni di tipo standard di Python, grazie a Pydantic.
    
    ```Python hl_lines="2  7-10  23-25"
    from fastapi import FastAPI
    from pydantic import BaseModel
    from typing import Optional
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top