Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for Tags (0.12 sec)

  1. docs/de/docs/tutorial/body-nested-models.md

        ```
    
    ## Set-Typen
    
    Aber dann denken wir darüber nach und stellen fest, dass sich die Tags nicht wiederholen sollen, es sollen eindeutige Strings sein.
    
    Python hat einen Datentyp speziell für Mengen eindeutiger Dinge: das <abbr title="Menge">`set`</abbr>.
    
    Deklarieren wir also `tags` als Set von Strings.
    
    === "Python 3.10+"
    
        ```Python hl_lines="12"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/generate-clients.md

    <img src="/img/tutorial/generate-clients/image05.png">
    
    ## FastAPI App with Tags
    
    In many cases your FastAPI app will be bigger, and you will probably use tags to separate different groups of *path operations*.
    
    For example, you could have a section for **items** and another section for **users**, and they could be separated by tags:
    
    === "Python 3.9+"
    
        ```Python hl_lines="21  26  34"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/metadata.md

    ⏮️ 👉 📳, 🏧 🛠️ 🩺 🔜 👀 💖:
    
    <img src="/img/tutorial/metadata/image01.png">
    
    ## 🗃 🔖
    
    👆 💪 🚮 🌖 🗃 🎏 🔖 ⚙️ 👪 👆 ➡ 🛠️ ⏮️ 🔢 `openapi_tags`.
    
    ⚫️ ✊ 📇 ⚗ 1️⃣ 📖 🔠 🔖.
    
    🔠 📖 💪 🔌:
    
    * `name` (**✔**): `str` ⏮️ 🎏 📛 👆 ⚙️ `tags` 🔢 👆 *➡ 🛠️* &amp; `APIRouter`Ⓜ.
    * `description`: `str` ⏮️ 📏 📛 🔖. ⚫️ 💪 ✔️ ✍ &amp; 🔜 🎦 🩺 🎚.
    * `externalDocs`: `dict` 🔬 🔢 🧾 ⏮️:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/metadata.md

    !!! tip
        You don't have to add metadata for all the tags that you use.
    
    ### Use your tags
    
    Use the `tags` parameter with your *path operations* (and `APIRouter`s) to assign them to different tags:
    
    ```Python hl_lines="21  26"
    {!../../../docs_src/metadata/tutorial004.py!}
    ```
    
    !!! info
        Read more about tags in [Path Operation Configuration](path-operation-configuration.md#tags){.internal-link target=_blank}.
    
    ### Check the docs
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/response-model.md

    #### 具有与默认值相同值的数据
    
    如果数据具有与默认值相同的值,例如 ID 为 `baz` 的项:
    
    ```Python hl_lines="3  5-6"
    {
        "name": "Baz",
        "description": None,
        "price": 50.2,
        "tax": 10.5,
        "tags": []
    }
    ```
    
    即使 `description`、`tax` 和 `tags` 具有与默认值相同的值,FastAPI 足够聪明 (实际上是 Pydantic 足够聪明) 去认识到这一点,它们的值被显式地所设定(而不是取自默认值)。
    
    因此,它们将包含在 JSON 响应中。
    
    !!! tip
        请注意默认值可以是任何值,而不仅是`None`。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  6. docs/en/docs/how-to/general.md

    ## Documentation Tags - OpenAPI
    
    To add tags to your *path operations*, and group them in the docs UI, read the docs for [Tutorial - Path Operation Configurations - Tags](../tutorial/path-operation-configuration.md#tags){.internal-link target=_blank}.
    
    ## Documentation Summary and Description - OpenAPI
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  7. docs/ja/docs/tutorial/response-model.md

    ID`baz`のitemのようにデフォルト値と同じ値を持つデータの場合:
    
    ```Python hl_lines="3 5 6"
    {
        "name": "Baz",
        "description": None,
        "price": 50.2,
        "tax": 10.5,
        "tags": []
    }
    ```
    
    FastAPIは十分に賢いので(実際には、Pydanticが十分に賢い)`description`や`tax`、`tags`はデフォルト値と同じ値を持っているにもかかわらず、明示的に設定されていることを理解しています。(デフォルトから取得するのではなく)
    
    そのため、それらはJSONレスポンスに含まれることになります。
    
    !!! tip "豆知識"
        デフォルト値は`None`だけでなく、なんでも良いことに注意してください。
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/path-operation-configuration.md

        **FastAPI** bietet dieselben `starlette.status`-Codes auch via `fastapi.status` an, als Annehmlichkeit für Sie, den Entwickler. Sie kommen aber direkt von Starlette.
    
    ## Tags
    
    Sie können Ihrer *Pfadoperation* Tags hinzufügen, mittels des Parameters `tags`, dem eine `list`e von `str`s übergeben wird (in der Regel nur ein `str`):
    
    === "Python 3.10+"
    
        ```Python hl_lines="15  20  25"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:07:48 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/bigger-applications.md

    ### Add some custom `tags`, `responses`, and `dependencies`
    
    We are not adding the prefix `/items` nor the `tags=["items"]` to each *path operation* because we added them to the `APIRouter`.
    
    But we can still add _more_ `tags` that will be applied to a specific *path operation*, and also some extra `responses` specific to that *path operation*:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/response-model.md

    ```Python hl_lines="3  5-6"
    {
        "name": "Baz",
        "description": None,
        "price": 50.2,
        "tax": 10.5,
        "tags": []
    }
    ```
    
    FastAPI is smart enough (actually, Pydantic is smart enough) to realize that, even though `description`, `tax`, and `tags` have the same values as the defaults, they were set explicitly (instead of taken from the defaults).
    
    So, they will be included in the JSON response.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
Back to top