Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 115 for customer (0.17 sec)

  1. docs/de/docs/advanced/openapi-callbacks.md

    Sehen wir uns das alles anhand eines Beispiels an.
    
    Stellen Sie sich vor, Sie entwickeln eine Anwendung, mit der Sie Rechnungen erstellen können.
    
    Diese Rechnungen haben eine `id`, einen optionalen `title`, einen `customer` (Kunde) und ein `total` (Gesamtsumme).
    
    Der Benutzer Ihrer API (ein externer Entwickler) erstellt mit einem POST-Request eine Rechnung in Ihrer API.
    
    Dann wird Ihre API (beispielsweise):
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:23 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  2. docs/em/docs/advanced/openapi-callbacks.md

    👉 💼, 👆 💪 💚 📄 ❔ 👈 🔢 🛠️ *🔜* 👀 💖. ⚫️❔ *➡ 🛠️* ⚫️ 🔜 ✔️, ⚫️❔ 💪 ⚫️ 🔜 ⌛, ⚫️❔ 📨 ⚫️ 🔜 📨, ♒️.
    
    ## 📱 ⏮️ ⏲
    
    ➡️ 👀 🌐 👉 ⏮️ 🖼.
    
    🌈 👆 🛠️ 📱 👈 ✔ 🏗 🧾.
    
    👉 🧾 🔜 ✔️ `id`, `title` (📦), `customer`, & `total`.
    
    👩‍💻 👆 🛠️ (🔢 👩‍💻) 🔜 ✍ 🧾 👆 🛠️ ⏮️ 🏤 📨.
    
    ⤴️ 👆 🛠️ 🔜 (➡️ 🌈):
    
    * 📨 🧾 🕴 🔢 👩‍💻.
    * 📈 💸.
    * 📨 📨 🔙 🛠️ 👩‍💻 (🔢 👩‍💻).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  3. docs_src/openapi_callbacks/tutorial001.py

    from typing import Union
    
    from fastapi import APIRouter, FastAPI
    from pydantic import BaseModel, HttpUrl
    
    app = FastAPI()
    
    
    class Invoice(BaseModel):
        id: str
        title: Union[str, None] = None
        customer: str
        total: float
    
    
    class InvoiceEvent(BaseModel):
        description: str
        paid: bool
    
    
    class InvoiceEventReceived(BaseModel):
        ok: bool
    
    
    invoices_callback_router = APIRouter()
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py

                                # TODO: remove when deprecating Pydantic v1
                                {"title": "Title", "type": "string"}
                            ),
                            "customer": {"title": "Customer", "type": "string"},
                            "total": {"title": "Total", "type": "number"},
                        },
                    },
                    "InvoiceEvent": {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 9K bytes
    - Viewed (0)
  5. tests/test_sub_callbacks.py

                                    # TODO: remove when deprecating Pydantic v1
                                    {"title": "Title", "type": "string"}
                                ),
                                "customer": {"title": "Customer", "type": "string"},
                                "total": {"title": "Total", "type": "number"},
                            },
                        },
                        "InvoiceEvent": {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/openapi-callbacks.md

    Imagine you develop an app that allows creating invoices.
    
    These invoices will have an `id`, `title` (optional), `customer`, and `total`.
    
    The user of your API (an external developer) will create an invoice in your API with a POST request.
    
    Then your API will (let's imagine):
    
    * Send the invoice to some customer of the external developer.
    * Collect the money.
    * Send a notification back to the API user (the external developer).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. docs/zh/docs/advanced/openapi-callbacks.md

    API 应用调用外部 API 时的流程叫做**回调**。因为外部开发者编写的软件发送请求至您的 API,然后您的 API 要进行回调,并把请求发送至外部 API。
    
    此时,我们需要存档外部 API 的*信息*,比如应该有哪些*路径操作*,返回什么样的请求体,应该返回哪种响应等。
    
    ## 使用回调的应用
    
    示例如下。
    
    假设要开发一个创建发票的应用。
    
    发票包括 `id`、`title`(可选)、`customer`、`total` 等属性。
    
    API 的用户 (外部开发者)要在您的 API 内使用 POST 请求创建一条发票记录。
    
    (假设)您的 API 将:
    
    * 把发票发送至外部开发者的消费者
    * 归集现金
    * 把通知发送至 API 的用户(外部开发者)
        * 通过(从您的 API)发送 POST 请求至外部 API (即**回调**)来完成
    
    ## 常规 **FastAPI** 应用
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:46:28 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  8. docs/zh/docs/advanced/custom-request-and-route.md

    ```Python hl_lines="13  15"
    {!../../../docs_src/custom_request_and_route/tutorial002.py!}
    ```
    
    发生异常时,`Request` 实例仍在作用域内,因此处理错误时可以读取和使用请求体:
    
    ```Python hl_lines="16-18"
    {!../../../docs_src/custom_request_and_route/tutorial002.py!}
    ```
    
    ## 在路由中自定义 `APIRoute` 类
    
    您还可以设置 `APIRoute` 的 `route_class` 参数:
    
    ```Python hl_lines="26"
    {!../../../docs_src/custom_request_and_route/tutorial003.py!}
    ```
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 22:45:40 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. tests/test_custom_route_class.py

    Sebastián Ramírez <******@****.***> 1688149516 +0200
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  10. pdm_build.py

        )
        # Get custom optional dependencies name to always include in this (non-slim) package
        include_optional_dependencies: List[str] = config.get(
            "include-optional-dependencies", []
        )
        # Override main [project] configs with custom configs for this package
        for key, value in project_config.items():
            metadata[key] = value
        # Get custom build config for the current package
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 30 06:38:13 GMT 2024
    - 1.7K bytes
    - Viewed (0)
Back to top