- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for tags (0.14 sec)
-
docs/em/docs/tutorial/path-operation-configuration.md
!!! note "📡 ℹ" 👆 💪 ⚙️ `from starlette import status`. **FastAPI** 🚚 🎏 `starlette.status` `fastapi.status` 🏪 👆, 👩💻. ✋️ ⚫️ 👟 🔗 ⚪️➡️ 💃. ## 🔖 👆 💪 🚮 🔖 👆 *➡ 🛠️*, 🚶♀️ 🔢 `tags` ⏮️ `list` `str` (🛎 1️⃣ `str`): === "🐍 3️⃣.6️⃣ & 🔛" ```Python hl_lines="17 22 27" {!> ../../../docs_src/path_operation_configuration/tutorial002.py!} ``` === "🐍 3️⃣.9️⃣ & 🔛"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 5.3K bytes - Viewed (0) -
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:
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) -
docs/zh/docs/tutorial/path-operation-configuration.md
!!! note "技术细节" 也可以使用 `from starlette import status` 导入状态码。 **FastAPI** 的`fastapi.status` 和 `starlette.status` 一样,只是快捷方式。实际上,`fastapi.status` 直接继承自 Starlette。 ## `tags` 参数 `tags` 参数的值是由 `str` 组成的 `list` (一般只有一个 `str` ),`tags` 用于为*路径操作*添加标签: ```Python hl_lines="17 22 27" {!../../../docs_src/path_operation_configuration/tutorial002.py!} ``` OpenAPI 概图会自动添加标签,供 API 文档接口使用:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 12 00:06:16 GMT 2022 - 3.4K bytes - Viewed (0) -
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:
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) -
docs/de/docs/tutorial/path-operation-configuration.md
<img src="/img/tutorial/path-operation-configuration/image01.png"> ### 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:
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) -
docs/ko/docs/tutorial/path-operation-configuration.md
다음과 같이 임포트하셔도 좋습니다. `from starlette import status`. **FastAPI**는 개발자 여러분의 편의를 위해서 `starlette.status`와 동일한 `fastapi.status`를 제공합니다. 하지만 Starlette에서 직접 온 것입니다. ## 태그 (보통 단일 `str`인) `str`로 구성된 `list`와 함께 매개변수 `tags`를 전달하여, `경로 작동`에 태그를 추가할 수 있습니다: ```Python hl_lines="17 22 27" {!../../../docs_src/path_operation_configuration/tutorial002.py!} ``` 전달된 태그들은 OpenAPI의 스키마에 추가되며, 자동 문서 인터페이스에서 사용됩니다:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Feb 11 13:48:31 GMT 2024 - 4.1K bytes - Viewed (0) -
docs/ja/docs/tutorial/path-operation-configuration.md
そのステータスコードはレスポンスで使用され、OpenAPIスキーマに追加されます。 !!! note "技術詳細" また、`from starlette import status`を使用することもできます。 **FastAPI** は開発者の利便性を考慮して、`fastapi.status`と同じ`starlette.status`を提供しています。しかし、これはStarletteから直接提供されています。 ## タグ `tags`パラメータを`str`の`list`(通常は1つの`str`)と一緒に渡すと、*path operation*にタグを追加できます: ```Python hl_lines="17 22 27" {!../../../docs_src/path_operation_configuration/tutorial002.py!} ``` これらはOpenAPIスキーマに追加され、自動ドキュメントのインターフェースで使用されます:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 04:38:26 GMT 2024 - 4.3K bytes - Viewed (0) -
docs/ru/docs/tutorial/path-operation-configuration.md
## Теги Вы можете добавлять теги к вашим *операциям пути*, добавив параметр `tags` с `list` заполненным `str`-значениями (обычно в нём только одна строка): === "Python 3.10+" ```Python hl_lines="15 20 25" {!> ../../../docs_src/path_operation_configuration/tutorial002_py310.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 8K bytes - Viewed (0)