Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for Paid (0.01 sec)

  1. tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py

                        "title": "InvoiceEvent",
                        "required": ["description", "paid"],
                        "type": "object",
                        "properties": {
                            "description": {"title": "Description", "type": "string"},
                            "paid": {"title": "Paid", "type": "boolean"},
                        },
                    },
                    "InvoiceEventReceived": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/openapi-callbacks.md

    ## 存档回调
    
    实际的回调代码高度依赖于您自己的 API 应用。
    
    并且可能每个应用都各不相同。
    
    回调代码可能只有一两行,比如:
    
    ```Python
    callback_url = "https://example.com/api/v1/invoices/events/"
    requests.post(callback_url, json={"description": "Invoice paid", "paid": True})
    ```
    
    但回调最重要的部分可能是,根据 API 要发送给回调请求体的数据等内容,确保您的 API 用户(外部开发者)正确地实现*外部 API*。
    
    因此,我们下一步要做的就是添加代码,为从 API 接收回调的*外部 API*存档。
    
    这部分文档在 `/docs` 下的 Swagger API 文档中显示,并且会告诉外部开发者如何构建*外部 API*。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. docs/es/docs/advanced/openapi-callbacks.md

    Podría ser solo una o dos líneas de código, como:
    
    ```Python
    callback_url = "https://example.com/api/v1/invoices/events/"
    httpx.post(callback_url, json={"description": "Invoice paid", "paid": True})
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  4. docs/de/docs/advanced/openapi-callbacks.md

    Es könnten nur eine oder zwei Codezeilen sein, wie zum Beispiel:
    
    ```Python
    callback_url = "https://example.com/api/v1/invoices/events/"
    httpx.post(callback_url, json={"description": "Invoice paid", "paid": True})
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 13:54:34 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  5. docs_src/openapi_callbacks/tutorial001_py310.py

    app = FastAPI()
    
    
    class Invoice(BaseModel):
        id: str
        title: str | None = None
        customer: str
        total: float
    
    
    class InvoiceEvent(BaseModel):
        description: str
        paid: bool
    
    
    class InvoiceEventReceived(BaseModel):
        ok: bool
    
    
    invoices_callback_router = APIRouter()
    
    
    @invoices_callback_router.post(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  6. docs_src/openapi_callbacks/tutorial001_py39.py

    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()
    
    
    @invoices_callback_router.post(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/openapi-callbacks.md

    It could be just one or two lines of code, like:
    
    ```Python
    callback_url = "https://example.com/api/v1/invoices/events/"
    httpx.post(callback_url, json={"description": "Invoice paid", "paid": True})
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 8K bytes
    - Viewed (0)
  8. docs/pt/docs/advanced/openapi-callbacks.md

    Poderia ser apenas uma ou duas linhas de código, como:
    
    ```Python
    callback_url = "https://example.com/api/v1/invoices/events/"
    httpx.post(callback_url, json={"description": "Invoice paid", "paid": True})
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 20:32:40 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  9. docs_src/metadata/tutorial001_1_py39.py

    * **Create users** (_not implemented_).
    * **Read users** (_not implemented_).
    """
    
    app = FastAPI(
        title="ChimichangApp",
        description=description,
        summary="Deadpool's favorite app. Nuff said.",
        version="0.0.1",
        terms_of_service="http://example.com/terms/",
        contact={
            "name": "Deadpoolio the Amazing",
            "url": "http://x-force.example.com/contact/",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 767 bytes
    - Viewed (0)
  10. docs/fr/llm-prompt.md

    Examples:
    
        Source (English):
    
            «««
            "Hello world"
            “Hello Universe”
            "He said: 'Hello'"
            "The module is `__main__`"
            »»»
    
        Result (French):
    
            «««
            «Hello world»
            «Hello Universe»
            «He said: 'Hello'»
            «The module is `__main__`»
            »»»
    
    ### Ellipsis
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 10:41:43 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top