Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1281 - 1290 of 1,501 for apps (0.01 seconds)

  1. docs/zh/docs/advanced/path-operation-advanced-configuration.md

    你应该在添加了所有 *路径操作* 之后执行此操作。
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial002.py hl[2,12,13,14,15,16,17,18,19,20,21,24] *}
    
    /// tip
    
    如果你手动调用 `app.openapi()`,你应该在此之前更新 `operationId`。
    
    ///
    
    /// warning
    
    如果你这样做,务必确保你的每个 *路径操作函数* 的名字唯一。
    
    即使它们在不同的模块中(Python 文件)。
    
    ///
    
    ## 从 OpenAPI 中排除
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 1.8K bytes
    - Click Count (0)
  2. cmd/crossdomain-xml-handler.go

    // Standard path where an app would find cross domain policy information.
    const crossDomainXMLEntity = "/crossdomain.xml"
    
    // A cross-domain policy file is an XML document that grants a web client, such as Adobe Flash Player
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Mar 18 06:42:40 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  3. docs/de/docs/deployment/server-workers.md

                 following code:
    
                 <u style="text-decoration-style:solid">from </u><u style="text-decoration-style:solid"><b>main</b></u><u style="text-decoration-style:solid"> import </u><u style="text-decoration-style:solid"><b>app</b></u>
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 02 17:32:56 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  4. docs/zh/docs/tutorial/handling-errors.md

    ## 安装自定义异常处理器
    
    添加自定义处理器,要使用 [Starlette 的异常工具](https://www.starlette.dev/exceptions/)。
    
    假设要触发的自定义异常叫作 `UnicornException`。
    
    且需要 FastAPI 实现全局处理该异常。
    
    此时,可以用 `@app.exception_handler()` 添加自定义异常控制器:
    
    {* ../../docs_src/handling_errors/tutorial003.py hl[5:7,13:18,24] *}
    
    请求 `/unicorns/yolo` 时,路径操作会触发 `UnicornException`。
    
    但该异常将会被 `unicorn_exception_handler` 处理。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  5. tests/test_query.py

    from fastapi.testclient import TestClient
    
    from .main import app
    
    client = TestClient(app)
    
    
    def test_query():
        response = client.get("/query")
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "missing",
                    "loc": ["query", "query"],
                    "msg": "Field required",
                    "input": None,
                }
            ]
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  6. docs/de/docs/tutorial/dependencies/global-dependencies.md

    ## Abhängigkeiten für Gruppen von *Pfadoperationen* { #dependencies-for-groups-of-path-operations }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  7. docs/uk/docs/tutorial/handling-errors.md

    І Ви хочете обробляти це виключення глобально за допомогою FastAPI.
    
    Ви можете додати власний обробник виключень за допомогою `@app.exception_handler()`:
    
    {* ../../docs_src/handling_errors/tutorial003.py hl[5:7,13:18,24] *}
    
    Тут, якщо Ви звернетеся до `/unicorns/yolo`, то згенерується помилка `UnicornException`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 13.9K bytes
    - Click Count (0)
  8. docs/en/docs/tutorial/dependencies/global-dependencies.md

    And all the ideas in the section about [adding `dependencies` to the *path operation decorators*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank} still apply, but in this case, to all of the *path operations* in the app.
    
    ## Dependencies for groups of *path operations* { #dependencies-for-groups-of-path-operations }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 1.1K bytes
    - Click Count (0)
  9. docs/en/docs/reference/websockets.md

    ///
    
    ::: fastapi.WebSocket
        options:
            members:
                - scope
                - app
                - url
                - base_url
                - headers
                - query_params
                - path_params
                - cookies
                - client
                - state
                - url_for
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Aug 06 04:48:30 GMT 2024
    - 1.7K bytes
    - Click Count (0)
  10. docs/es/docs/how-to/extending-openapi.md

    * `description`: La descripción de tu API, esta puede incluir markdown y se mostrará en la documentación.
    * `routes`: Una list de rutas, estas son cada una de las *path operations* registradas. Se toman de `app.routes`.
    
    /// info | Información
    
    El parámetro `summary` está disponible en OpenAPI 3.1.0 y versiones superiores, soportado por FastAPI 0.99.0 y superiores.
    
    ///
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 3.6K bytes
    - Click Count (0)
Back to Top