Search Options

Results per page
Sort
Preferred Languages
Advance

Results 841 - 850 of 1,977 for Fastapi (0.15 sec)

  1. docs/zh/docs/advanced/behind-a-proxy.md

    返回的响应如下:
    
    ```JSON
    {
        "message": "Hello World",
        "root_path": "/api/v1"
    }
    ```
    
    ### 在 FastAPI 应用里设置 `root_path`
    
    还有一种方案,如果不能提供 `--root-path` 或等效的命令行选项,则在创建 FastAPI 应用时要设置 `root_path` 参数。
    
    ```Python hl_lines="3"
    {!../../docs_src/behind_a_proxy/tutorial002.py!}
    ```
    
    传递 `root_path` 给 `FastAPI` 与传递 `--root-path` 命令行选项给 Uvicorn 或 Hypercorn 一样。
    
    ### 关于 `root_path`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/static-files.md

    {!../../docs_src/static_files/tutorial001.py!}
    ```
    
    /// note | "Технические детали"
    
    Вы также можете использовать `from starlette.staticfiles import StaticFiles`.
    
    **FastAPI** предоставляет `starlette.staticfiles` под псевдонимом `fastapi.staticfiles`, просто для вашего удобства, как разработчика. Но на самом деле это берётся напрямую из библиотеки Starlette.
    
    ///
    
    ### Что такое "Монтирование"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. docs/fr/docs/index.md

    # FastAPI
    
    <style>
    .md-content .md-typeset h1 { display: none; }
    </style>
    
    <p align="center">
      <a href="https://fastapi.tiangolo.com"><img src="https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png" alt="FastAPI"></a>
    </p>
    <p align="center">
        Framework FastAPI, haute performance, facile à apprendre, rapide à coder, prêt pour la production
    </p>
    <p align="center">
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 22K bytes
    - Viewed (0)
  4. docs/zh-hant/docs/index.md

    <p align="center">
      <a href="https://fastapi.tiangolo.com"><img src="https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png" alt="FastAPI"></a>
    </p>
    <p align="center">
        FastAPI 框架,高效能,易於學習,快速開發,適用於生產環境
    </p>
    <p align="center">
    <a href="https://github.com/fastapi/fastapi/actions?query=workflow%3ATest+event%3Apush+branch%3Amaster" target="_blank">
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  5. docs_src/response_status_code/tutorial001.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.post("/items/", status_code=201)
    async def create_item(name: str):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 145 bytes
    - Viewed (0)
  6. docs/pt/docs/advanced/sub-applications.md

    # Sub Aplicações - Montagens
    
    Se você precisar ter duas aplicações FastAPI independentes, cada uma com seu próprio OpenAPI e suas próprias interfaces de documentação, você pode ter um aplicativo principal e "montar" uma (ou mais) sub-aplicações.
    
    ## Montando uma aplicação **FastAPI**
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. docs/es/docs/advanced/response-directly.md

    ///
    
    Y cuando devuelves una `Response`, **FastAPI** la pasará directamente.
    
    No hará ninguna conversión de datos con modelos Pydantic, no convertirá el contenido a ningún tipo, etc.
    
    Esto te da mucha flexibilidad. Puedes devolver cualquier tipo de dato, sobrescribir cualquier declaración de datos o validación, etc.
    
    ## Usando el `jsonable_encoder` en una `Response`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. docs/de/docs/advanced/custom-response.md

    Und er wird als solcher in OpenAPI dokumentiert.
    
    ///
    
    /// tip | "Tipp"
    
    Die `ORJSONResponse` ist derzeit nur in FastAPI verfügbar, nicht in Starlette.
    
    ///
    
    ## HTML-Response
    
    Um eine Response mit HTML direkt von **FastAPI** zurückzugeben, verwenden Sie `HTMLResponse`.
    
    * Importieren Sie `HTMLResponse`.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  9. docs_src/query_params_str_validations/tutorial013.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: list = Query(default=[])):
        query_items = {"q": q}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 175 bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/static-files.md

    {* ../../docs_src/static_files/tutorial001.py hl[2,6] *}
    
    /// note | "Technical Details"
    
    You could also use `from starlette.staticfiles import StaticFiles`.
    
    **FastAPI** provides the same `starlette.staticfiles` as `fastapi.staticfiles` just as a convenience for you, the developer. But it actually comes directly from Starlette.
    
    ///
    
    ### What is "Mounting"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:45:40 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top