Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for notice (0.38 sec)

  1. docs/en/docs/advanced/openapi-webhooks.md

    !!! info
        The `app.webhooks` object is actually just an `APIRouter`, the same type you would use when structuring your app with multiple files.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/openapi-callbacks.md

        "paid": true
    }
    ```
    
    and it would expect a response from that *external API* with a JSON body like:
    
    ```JSON
    {
        "ok": true
    }
    ```
    
    !!! tip
        Notice how the callback URL used contains the URL received as a query parameter in `callback_url` (`https://www.external.org/events`) and also the invoice `id` from inside of the JSON body (`2expen51ve`).
    
    ### Add the callback router
    
    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)
  3. docs/en/docs/tutorial/body-nested-models.md

                "name": "The Foo live"
            },
            {
                "url": "http://example.com/dave.jpg",
                "name": "The Baz"
            }
        ]
    }
    ```
    
    !!! info
        Notice how the `images` key now has a list of image objects.
    
    ## Deeply nested models
    
    You can define arbitrarily deeply nested models:
    
    === "Python 3.10+"
    
        ```Python hl_lines="7  12  18  21  25"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/websockets.md

    And to communicate using WebSockets with your backend you would probably use your frontend's utilities.
    
    Or you might have a native mobile application that communicates with your WebSocket backend directly, in native code.
    
    Or you might have any other way to communicate with the WebSocket endpoint.
    
    ---
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  5. docs/en/docs/how-to/async-sql-encode-databases.md

    !!! note
        Notice that as we communicate with the database using `await`, the *path operation function* is declared with `async`.
    
    ### About `{**note.dict(), "id": last_record_id}`
    
    `note` is a Pydantic `Note` object.
    
    `note.dict()` returns a `dict` with its data, something like:
    
    ```Python
    {
        "text": "Some note",
        "completed": False,
    }
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/dependencies/index.md

    read_users["/users/"]
    
    common_parameters --> read_items
    common_parameters --> read_users
    ```
    
    This way you write shared code once and **FastAPI** takes care of calling it for your *path operations*.
    
    !!! check
        Notice that you don't have to create a special class and pass it somewhere to **FastAPI** to "register" it or anything similar.
    
        You just pass it to `Depends` and **FastAPI** knows how to do the rest.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/query-params-str-validations.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="10"
        {!> ../../../docs_src/query_params_str_validations/tutorial002_an.py!}
        ```
    
    Notice that the default value is still `None`, so the parameter is still optional.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 25.7K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/body-updates.md

        ```
    
    !!! tip
        You can actually use this same technique with an HTTP `PUT` operation.
    
        But the example here uses `PATCH` because it was created for these use cases.
    
    !!! note
        Notice that the input model is still validated.
    
        So, if you want to receive partial updates that can omit all the attributes, you need to have a model with all the attributes marked as optional (with default values or `None`).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/path-params.md

    ```JSON
    {"item_id":3}
    ```
    
    !!! check
        Notice that the value your function received (and returned) is `3`, as a Python `int`, not a string `"3"`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/custom-response.md

        By doing it this way, we can put it in a `with` block, and that way, ensure that it is closed after finishing.
    
    !!! tip
        Notice that here as we are using standard `open()` that doesn't support `async` and `await`, we declare the path operation with normal `def`.
    
    ### `FileResponse`
    
    Asynchronously streams a file as the response.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
Back to top