- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 41 for UNIQUE (0.2 sec)
-
docs/en/docs/advanced/path-operation-advanced-configuration.md
If you are not an "expert" in OpenAPI, you probably don't need this. You can set the OpenAPI `operationId` to be used in your *path operation* with the parameter `operation_id`. You would have to make sure that it is unique for each operation. ```Python hl_lines="6" {!../../../docs_src/path_operation_advanced_configuration/tutorial001.py!} ``` ### Using the *path operation function* name as the operationId
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) -
docs/de/docs/tutorial/extra-data-types.md
## Andere Datentypen Hier sind einige der zusätzlichen Datentypen, die Sie verwenden können: * `UUID`: * Ein standardmäßiger „universell eindeutiger Bezeichner“ („Universally Unique Identifier“), der in vielen Datenbanken und Systemen als ID üblich ist. * Wird in Requests und Responses als `str` dargestellt. * `datetime.datetime`: * Ein Python-`datetime.datetime`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:08:55 GMT 2024 - 4.4K bytes - Viewed (0) -
docs/ko/docs/tutorial/body-nested-models.md
마찬가지로 예제에서 `tags`를 구체적으로 "문자열의 리스트"로 만들 수 있습니다: ```Python hl_lines="14" {!../../../docs_src/body_nested_models/tutorial002.py!} ``` ## 집합 타입 그런데 생각해보니 태그는 반복되면 안 돼고, 고유한(Unique) 문자열이어야 할 것 같습니다. 그리고 파이썬은 집합을 위한 특별한 데이터 타입 `set`이 있습니다. 그렇다면 `Set`을 임포트 하고 `tags`를 `str`의 `set`으로 선언할 수 있습니다: ```Python hl_lines="1 14" {!../../../docs_src/body_nested_models/tutorial003.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 7.6K bytes - Viewed (0) -
docs/de/docs/advanced/generate-clients.md
Hier verwendet sie beispielsweise den ersten Tag (Sie werden wahrscheinlich nur einen Tag haben) und den Namen der *Pfadoperation* (den Funktionsnamen). Anschließend können Sie diese benutzerdefinierte Funktion als Parameter `generate_unique_id_function` an **FastAPI** übergeben: === "Python 3.9+" ```Python hl_lines="6-7 10" {!> ../../../docs_src/generate_clients/tutorial003_py39.py!} ``` === "Python 3.8+"
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) -
docs/em/docs/advanced/generate-clients.md
👆 💪 🛃 👈 🔢. ⚫️ ✊ `APIRoute` & 🔢 🎻. 🖼, 📥 ⚫️ ⚙️ 🥇 🔖 (👆 🔜 🎲 ✔️ 🕴 1️⃣ 🔖) & *➡ 🛠️* 📛 (🔢 📛). 👆 💪 ⤴️ 🚶♀️ 👈 🛃 🔢 **FastAPI** `generate_unique_id_function` 🔢: === "🐍 3️⃣.6️⃣ & 🔛" ```Python hl_lines="8-9 12" {!> ../../../docs_src/generate_clients/tutorial003.py!} ``` === "🐍 3️⃣.9️⃣ & 🔛"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Apr 03 03:42:11 GMT 2024 - 8.4K bytes - Viewed (0) -
docs/en/docs/release-notes.md
## 0.75.0 ### Features
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) -
docs/zh/docs/advanced/generate-clients.md
### 自定义生成唯一ID函数 FastAPI为每个*路径操作*使用一个**唯一ID**,它用于**操作ID**,也用于任何所需自定义模型的名称,用于请求或响应。 你可以自定义该函数。它接受一个 `APIRoute` 对象作为输入,并输出一个字符串。 例如,以下是一个示例,它使用第一个标签(你可能只有一个标签)和*路径操作*名称(函数名)。 然后,你可以将这个自定义函数作为 `generate_unique_id_function` 参数传递给 **FastAPI**: === "Python 3.9+" ```Python hl_lines="6-7 10" {!> ../../../docs_src/generate_clients/tutorial003_py39.py!} ``` === "Python 3.8+"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Apr 03 03:42:11 GMT 2024 - 9.1K bytes - Viewed (0) -
fastapi/openapi/utils.py
operation["summary"] = generate_operation_summary(route=route, method=method) if route.description: operation["description"] = route.description operation_id = route.operation_id or route.unique_id if operation_id in operation_ids: message = ( f"Duplicate Operation ID {operation_id} for function " + f"{route.endpoint.__name__}" )
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 21.8K bytes - Viewed (0) -
fastapi/_compat.py
exclude_defaults=exclude_defaults, exclude_none=exclude_none, ) def __hash__(self) -> int: # Each ModelField is unique for our purposes, to allow making a dict from # ModelField to its JSON Schema. return id(self) def get_annotation_from_field_info(
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 22.6K bytes - Viewed (0) -
docs/fr/docs/index.md
Par exemple, pour un `int`: ```Python item_id: int ``` ou pour un modèle `Item` plus complexe : ```Python item: Item ``` ... et avec cette déclaration unique, vous obtenez : * Une assistance dans votre IDE, notamment : * la complétion. * la vérification des types. * La validation des données :
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 29 05:18:04 GMT 2024 - 22K bytes - Viewed (0)