Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 768 for imag (0.02 sec)

  1. docs_src/additional_responses/tutorial004_py310.py

    }
    
    
    app = FastAPI()
    
    
    @app.get(
        "/items/{item_id}",
        response_model=Item,
        responses={**responses, 200: {"content": {"image/png": {}}}},
    )
    async def read_item(item_id: str, img: bool | None = None):
        if img:
            return FileResponse("image.png", media_type="image/png")
        else:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 669 bytes
    - Viewed (0)
  2. docs_src/additional_responses/tutorial002_py310.py

        "/items/{item_id}",
        response_model=Item,
        responses={
            200: {
                "content": {"image/png": {}},
                "description": "Return the JSON item or an image.",
            }
        },
    )
    async def read_item(item_id: str, img: bool | None = None):
        if img:
            return FileResponse("image.png", media_type="image/png")
        else:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 596 bytes
    - Viewed (0)
  3. README.md

    ## Build Docker Image
    
    You can use the `docker build .` command to build a Docker image on your local host machine.
    You must first [build MinIO](#install-from-source) and ensure the `minio` binary exists in the project root.
    
    The following command builds the Docker image using the default `Dockerfile` in the root project directory with the repository and image tag `myminio:minio`
    
    ```sh
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Dec 03 08:13:11 UTC 2025
    - 9K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/body-nested-models.md

    ///
    
    ## Bodys aus reinen Listen { #bodies-of-pure-lists }
    
    Wenn das äußerste Element des JSON-Bodys, das Sie erwarten, ein JSON-`array` (eine Python-`list`) ist, können Sie den Typ im Funktionsparameter deklarieren, mit der gleichen Syntax wie in Pydantic-Modellen:
    
    ```Python
    images: list[Image]
    ```
    
    so wie in:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  5. docs/fr/docs/deployment/docker.md

    * Construisez votre image FastAPI :
    
    <div class="termy">
    
    ```console
    $ docker build -t myimage .
    
    ---> 100%
    ```
    
    </div>
    
    ## Démarrer le conteneur Docker
    
    * Exécutez un conteneur basé sur votre image :
    
    <div class="termy">
    
    ```console
    $ docker run -d --name mycontainer -p 80:80 myimage
    ```
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/body-nested-models.md

    Observa cómo `Offer` tiene una lista de `Item`s, que a su vez tienen una lista opcional de `Image`s
    
    ///
    
    ## Cuerpos de listas puras { #bodies-of-pure-lists }
    
    Si el valor superior del cuerpo JSON que esperas es un `array` JSON (una `list` en Python), puedes declarar el tipo en el parámetro de la función, al igual que en los modelos Pydantic:
    
    ```Python
    images: list[Image]
    ```
    
    como en:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  7. docs/uk/docs/tutorial/body-nested-models.md

    ///
    
    ## Тіла запитів, що складаються зі списків
    
    Якщо верхній рівень JSON тіла, яке Ви очікуєте, є JSON `масивом` (у Python — `list`), Ви можете оголосити тип у параметрі функції, як і в моделях Pydantic:
    
    ```Python
    images: List[Image]
    ```
    або в Python 3.9 і вище:
    
    ```Python
    images: list[Image]
    ```
    
    наприклад:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Feb 28 14:18:01 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/body-nested-models.md

    ```Python
    images: list[Image]
    ```
    
    as in:
    
    {* ../../docs_src/body_nested_models/tutorial008_py39.py hl[13] *}
    
    ## Editor support everywhere { #editor-support-everywhere }
    
    And you get editor support everywhere.
    
    Even for items inside of lists:
    
    <img src="/img/tutorial/body-nested-models/image01.png">
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  9. docs/en/docs/js/custom.js

        const sponsorImages = document.querySelectorAll('.sponsor-image');
    
        const imagePromises = Array.from(sponsorImages).map(img => {
            return new Promise((resolve, reject) => {
                if (img.complete && img.naturalHeight !== 0) {
                    resolve();
                } else {
                    img.addEventListener('load', () => {
                        if (img.naturalHeight !== 0) {
                            resolve();
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Sep 22 15:11:52 UTC 2025
    - 6.3K bytes
    - Viewed (2)
  10. docs/ru/docs/tutorial/body-nested-models.md

    ///
    
    ## Тела с чистыми списками элементов { #bodies-of-pure-lists }
    
    Если верхний уровень значения тела JSON-объекта представляет собой JSON `array` (в Python — `list`), вы можете объявить тип в параметре функции, так же как в моделях Pydantic:
    
    ```Python
    images: list[Image]
    ```
    
    например так:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top