Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 87 of 87 for APIRouter (0.07 sec)

  1. docs/en/mkdocs.yml

      - reference/index.md
      - reference/fastapi.md
      - reference/parameters.md
      - reference/status.md
      - reference/uploadfile.md
      - reference/exceptions.md
      - reference/dependencies.md
      - reference/apirouter.md
      - reference/background.md
      - reference/request.md
      - reference/websockets.md
      - reference/httpconnection.md
      - reference/response.md
      - reference/responses.md
      - reference/middleware.md
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 20:28:02 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. docs/em/docs/advanced/custom-response.md

    {"message": "Hello World"}
    ```
    
    ...👉 📨 🔜 📨:
    
    ```json
    {
      "message": "Hello World"
    }
    ```
    
    ↗️, 👆 🔜 🎲 🔎 🌅 👍 🌌 ✊ 📈 👉 🌘 ❕ 🎻. 👶
    
    ## 🔢 📨 🎓
    
    🕐❔ 🏗 **FastAPI** 🎓 👐 ⚖️ `APIRouter` 👆 💪 ✔ ❔ 📨 🎓 ⚙️ 🔢.
    
    🔢 👈 🔬 👉 `default_response_class`.
    
    🖼 🔛, **FastAPI** 🔜 ⚙️ `ORJSONResponse` 🔢, 🌐 *➡ 🛠️*, ↩️ `JSONResponse`.
    
    ```Python hl_lines="2  4"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. docs/ja/docs/advanced/custom-response.md

    ファイルレスポンスには、適切な `Content-Length` 、 `Last-Modified` 、 `ETag` ヘッダーが含まれます。
    
    ```Python hl_lines="2  10"
    {!../../docs_src/custom_response/tutorial009.py!}
    ```
    
    ## デフォルトレスポンスクラス
    
    **FastAPI** クラスのインスタンスか `APIRouter` を生成するときに、デフォルトのレスポンスクラスを指定できます。
    
    定義するためのパラメータは、 `default_response_class` です。
    
    以下の例では、 **FastAPI** は、全ての *path operation* で `JSONResponse` の代わりに `ORJSONResponse` をデフォルトとして利用します。
    
    ```Python hl_lines="2  4"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  4. docs/de/docs/advanced/custom-response.md

    Natürlich werden Sie wahrscheinlich viel bessere Möglichkeiten finden, Vorteil daraus zu ziehen, als JSON zu formatieren. 😉
    
    ## Standard-Response-Klasse
    
    Beim Erstellen einer **FastAPI**-Klasseninstanz oder eines `APIRouter`s können Sie angeben, welche Response-Klasse standardmäßig verwendet werden soll.
    
    Der Parameter, der das definiert, ist `default_response_class`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/custom-response.md

    }
    ```
    
    Of course, you will probably find much better ways to take advantage of this than formatting JSON. 😉
    
    ## Default response class
    
    When creating a **FastAPI** class instance or an `APIRouter` you can specify which response class to use by default.
    
    The parameter that defines this is `default_response_class`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 12K bytes
    - Viewed (0)
  6. docs/pt/docs/advanced/custom-response.md

    Obviamente, você provavelmente vai encontrar maneiras muito melhores de se aproveitar disso do que a formatação de JSON. 😉
    
    ## Classe de resposta padrão
    
    Quando você criar uma instância da classe **FastAPI** ou um `APIRouter` você pode especificar qual classe de resposta utilizar por padrão.
    
    O padrão que define isso é o `default_response_class`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 29 11:47:10 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  7. docs/en/docs/release-notes.md

    ```Python
    from fastapi import APIRouter, Depends
    
    
    async def some_dependency():
        return
    
    
    router = APIRouter(prefix="/users", dependencies=[Depends(some_dependency)])
    ```
    
    **In `include_router`**
    
    Most of these settings are now supported in `APIRouter`, which normally lives closer to the related code, so it is recommended to use `APIRouter` when possible.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Nov 01 11:25:57 UTC 2024
    - 460.3K bytes
    - Viewed (0)
Back to top