Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for invoke (0.41 sec)

  1. tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py

            "paths": {
                "/invoices/": {
                    "post": {
                        "summary": "Create Invoice",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 9K bytes
    - Viewed (0)
  2. tests/test_sub_callbacks.py

    
    @subrouter.post("/invoices/", callbacks=invoices_callback_router.routes)
    def create_invoice(invoice: Invoice, callback_url: Optional[HttpUrl] = None):
        """
        Create an invoice.
    
        This will (let's imagine) let the API user (some external developer) create an
        invoice.
    
        And this path operation will:
    
        * Send the invoice to the client.
        * Collect the money from the client.
    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)
  3. docs_src/openapi_callbacks/tutorial001.py

    )
    def invoice_notification(body: InvoiceEvent):
        pass
    
    
    @app.post("/invoices/", callbacks=invoices_callback_router.routes)
    def create_invoice(invoice: Invoice, callback_url: Union[HttpUrl, None] = None):
        """
        Create an invoice.
    
        This will (let's imagine) let the API user (some external developer) create an
        invoice.
    
        And this path operation will:
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  4. tests/test_ws_router.py

            return wrapped_app
    
        return middleware_constructor
    
    
    def test_depend_validation():
        """
        Verify that a validation in a dependency invokes the correct exception handler
        """
        caught = []
    
        @websocket_middleware
        async def catcher(websocket, call_next):
            try:
                return await call_next()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 19:08:14 GMT 2023
    - 7.5K bytes
    - Viewed (0)
Back to top