Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for expand (0.19 sec)

  1. docs/en/docs/tutorial/testing.md

    ```Python hl_lines="3"
    {!../../../docs_src/app_testing/test_main.py!}
    ```
    
    ...and have the code for the tests just like before.
    
    ## Testing: extended example
    
    Now let's extend this example and add more details to see how to test different parts.
    
    ### Extended **FastAPI** app file
    
    Let's continue with the same file structure as before:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  2. docs/en/docs/how-to/async-sql-encode-databases.md

    ```Python
    {**note.dict()}
    ```
    
    `**note.dict()` "unpacks" the key value pairs directly, so, `{**note.dict()}` would be, more or less, a copy of `note.dict()`.
    
    And then, we extend that copy `dict`, adding another key-value pair: `"id": last_record_id`:
    
    ```Python
    {**note.dict(), "id": last_record_id}
    ```
    
    So, the final result returned would be something like:
    
    ```Python
    {
    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)
  3. docs/en/docs/how-to/nosql-databases-couchbase.md

    Any variable that is put inside of `{}` in an f-string will be expanded / injected in the string.
    
    ### `dict` unpacking
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 6K bytes
    - Viewed (0)
  4. docs/en/docs/release-notes.md

    ### Docs
    
    * 📝 Update GraphQL docs, recommend Strawberry. PR [#3981](https://github.com/tiangolo/fastapi/pull/3981) by [@tiangolo](https://github.com/tiangolo).
    * 📝 Re-write and extend Deployment guide: Concepts, Uvicorn, Gunicorn, Docker, Containers, Kubernetes. PR [#3974](https://github.com/tiangolo/fastapi/pull/3974) by [@tiangolo](https://github.com/tiangolo).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  5. docs/en/docs/features.md

        * You can have deeply **nested JSON** objects and have them all validated and annotated.
    * **Extensible**:
        * Pydantic allows custom data types to be defined or you can extend validation with methods on a model decorated with the validator decorator.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/path-operation-advanced-configuration.md

    !!! tip
        This is a low level extension point.
    
        If you only need to declare additional responses, a more convenient way to do it is with [Additional Responses in OpenAPI](additional-responses.md){.internal-link target=_blank}.
    
    You can extend the OpenAPI schema for a *path operation* using the parameter `openapi_extra`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/schema-extra-example.md

        You can set `schema_extra` with a `dict` containing any additional data you would like to show up in the generated JSON Schema, including `examples`.
    
    !!! tip
        You could use the same technique to extend the JSON Schema and add your own custom extra info.
    
        For example you could use it to add metadata for a frontend user interface, etc.
    
    !!! info
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/index.md

    But you should first read the **Tutorial - User Guide** (what you are reading right now).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 5.9K bytes
    - Viewed (0)
Back to top