Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for tag (0.21 sec)

  1. docs/en/docs/advanced/generate-clients.md

    In this case you will have to ensure that each operation ID is **unique** in some other way.
    
    For example, you could make sure that each *path operation* has a tag, and then generate the operation ID based on the **tag** and the *path operation* **name** (the function name).
    
    ### Custom Generate Unique ID Function
    
    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)
  2. docs/en/docs/tutorial/metadata.md

    It takes a list containing one dictionary for each tag.
    
    Each dictionary can contain:
    
    * `name` (**required**): a `str` with the same tag name you use in the `tags` parameter in your *path operations* and `APIRouter`s.
    * `description`: a `str` with a short description for the tag. It can have Markdown and will be shown in the docs UI.
    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)
  3. docs/de/docs/advanced/generate-clients.md

    In diesem Fall müssen Sie auf andere Weise sicherstellen, dass jede Operation-ID **eindeutig** ist.
    
    Sie könnten beispielsweise sicherstellen, dass jede *Pfadoperation* einen Tag hat, und dann die Operation-ID basierend auf dem **Tag** und dem **Namen** der *Pfadoperation* (dem Funktionsnamen) generieren.
    
    ### Funktion zum Generieren einer eindeutigen ID erstellen
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Apr 03 03:42:11 GMT 2024
    - 12K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/metadata.md

    Es wird eine Liste benötigt, die für jedes Tag ein Dict enthält.
    
    Jedes Dict kann Folgendes enthalten:
    
    * `name` (**erforderlich**): ein `str` mit demselben Tag-Namen, den Sie im Parameter `tags` in Ihren *Pfadoperationen* und `APIRouter`n verwenden.
    * `description`: ein `str` mit einer kurzen Beschreibung für das Tag. Sie kann Markdown enthalten und wird in der Benutzeroberfläche der Dokumentation angezeigt.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:25:38 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/path-operation-configuration.md

    ### Tags mittels Enumeration
    
    Wenn Sie eine große Anwendung haben, können sich am Ende **viele Tags** anhäufen, und Sie möchten sicherstellen, dass Sie für verwandte *Pfadoperationen* immer den **gleichen Tag** nehmen.
    
    In diesem Fall macht es Sinn, die Tags in einem `Enum` zu speichern.
    
    **FastAPI** unterstützt diese genauso wie einfache Strings:
    
    ```Python hl_lines="1  8-10  13  18"
    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)
  6. docs/en/docs/tutorial/bigger-applications.md

    But we want to be smarter and simplify the code a bit.
    
    We know all the *path operations* in this module have the same:
    
    * Path `prefix`: `/items`.
    * `tags`: (just one tag: `items`).
    * Extra `responses`.
    * `dependencies`: they all need that `X-Token` dependency we created.
    
    So, instead of adding all that to each *path operation*, we can add it to the `APIRouter`.
    
    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)
  7. docs/en/docs/tutorial/path-operation-configuration.md

    <img src="/img/tutorial/path-operation-configuration/image01.png">
    
    ### Tags with Enums
    
    If you have a big application, you might end up accumulating **several tags**, and you would want to make sure you always use the **same tag** for related *path operations*.
    
    In these cases, it could make sense to store the tags in an `Enum`.
    
    **FastAPI** supports that the same way as with plain strings:
    
    ```Python hl_lines="1  8-10  13  18"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/path-operation-configuration.md

    <img src="/img/tutorial/path-operation-configuration/image01.png">
    
    ### Tags com Enums
    
    Se você tem uma grande aplicação, você pode acabar acumulando **várias tags**, e você gostaria de ter certeza de que você sempre usa a **mesma tag** para *operações de rota* relacionadas.
    
    Nestes casos, pode fazer sentido armazenar as tags em um `Enum`.
    
    **FastAPI** suporta isso da mesma maneira que com strings simples:
    
    ```Python hl_lines="1  8-10  13  18"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/bigger-applications.md

    Aber wir wollen schlauer sein und den Code etwas vereinfachen.
    
    Wir wissen, dass alle *Pfadoperationen* in diesem Modul folgendes haben:
    
    * Pfad-`prefix`: `/items`.
    * `tags`: (nur ein Tag: `items`).
    * Zusätzliche `responses`.
    * `dependencies`: Sie alle benötigen die von uns erstellte `X-Token`-Abhängigkeit.
    
    Anstatt also alles zu jeder *Pfadoperation* hinzuzufügen, können wir es dem `APIRouter` hinzufügen.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:27:59 GMT 2024
    - 21.1K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/body-nested-models.md

        ```Python hl_lines="14"
        {!> ../../../docs_src/body_nested_models/tutorial002.py!}
        ```
    
    ## Set 类型
    
    但是随后我们考虑了一下,意识到标签不应该重复,它们很大可能会是唯一的字符串。
    
    Python 具有一种特殊的数据类型来保存一组唯一的元素,即 `set`。
    
    然后我们可以导入 `Set` 并将 `tag` 声明为一个由 `str` 组成的 `set`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="12"
        {!> ../../../docs_src/body_nested_models/tutorial003_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="14"
    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)
Back to top