- Sort Score
- Result 10 results
- Languages All
Results 271 - 280 of 890 for docs_src (0.1 sec)
-
docs/en/docs/how-to/configure-swagger-ui.md
{* ../../docs_src/configure_swagger_ui/tutorial001.py hl[3] *} ...and then Swagger UI won't show the syntax highlighting anymore: <img src="/img/tutorial/extending-openapi/image03.png"> ## Change the Theme The same way you could set the syntax highlighting theme with the key `"syntaxHighlight.theme"` (notice that it has a dot in the middle): {* ../../docs_src/configure_swagger_ui/tutorial002.py hl[3] *}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 26 16:50:52 UTC 2024 - 2.7K bytes - Viewed (0) -
docs/zh/docs/tutorial/metadata.md
但是你可以通过参数 `openapi_url` 对其进行配置。 例如,将其设置为服务于 `/api/v1/openapi.json`: ```Python hl_lines="3" {!../../docs_src/metadata/tutorial002.py!} ``` 如果你想完全禁用 OpenAPI 模式,可以将其设置为 `openapi_url=None`,这样也会禁用使用它的文档用户界面。 ## 文档 URLs 你可以配置两个文档用户界面,包括: * **Swagger UI**:服务于 `/docs`。 * 可以使用参数 `docs_url` 设置它的 URL。 * 可以通过设置 `docs_url=None` 禁用它。 * ReDoc:服务于 `/redoc`。 * 可以使用参数 `redoc_url` 设置它的 URL。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.6K bytes - Viewed (0) -
docs/ja/docs/tutorial/security/get-current-user.md
```Python hl_lines="10" {!../../docs_src/security/tutorial001.py!} ``` しかし、それはまだそんなに有用ではありません。 現在のユーザーを取得するようにしてみましょう。 ## ユーザーモデルの作成 まずは、Pydanticのユーザーモデルを作成しましょう。 ボディを宣言するのにPydanticを使用するのと同じやり方で、Pydanticを別のどんなところでも使うことができます: ```Python hl_lines="5 12-16" {!../../docs_src/security/tutorial002.py!} ``` ## 依存関係 `get_current_user` を作成
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.6K bytes - Viewed (0) -
docs/ko/docs/tutorial/dependencies/classes-as-dependencies.md
//// tab | 파이썬 3.6 이상 ```Python hl_lines="11-15" {!> ../../docs_src/dependencies/tutorial002.py!} ``` //// //// tab | 파이썬 3.10 이상 ```Python hl_lines="9-13" {!> ../../docs_src/dependencies/tutorial002_py310.py!} ``` //// 클래스의 인스턴스를 생성하는 데 사용되는 `__init__` 메서드에 주목하기 바랍니다: //// tab | 파이썬 3.6 이상 ```Python hl_lines="12" {!> ../../docs_src/dependencies/tutorial002.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.9K bytes - Viewed (0) -
docs/en/docs/tutorial/request-form-models.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.8K bytes - Viewed (0) -
docs/zh/docs/tutorial/response-model.md
//// tab | Python 3.10+ ```Python hl_lines="17 22 24-27" {!> ../../docs_src/response_model/tutorial001_py310.py!} ``` //// //// tab | Python 3.9+ ```Python hl_lines="17 22 24-27" {!> ../../docs_src/response_model/tutorial001_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="17 22 24-27" {!> ../../docs_src/response_model/tutorial001.py!} ``` //// /// note
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.8K bytes - Viewed (0) -
docs/en/docs/how-to/extending-openapi.md
### Normal **FastAPI** First, write all your **FastAPI** application as normally: {* ../../docs_src/extending_openapi/tutorial001.py hl[1,4,7:9] *} ### Generate the OpenAPI schema Then, use the same utility function to generate the OpenAPI schema, inside a `custom_openapi()` function: {* ../../docs_src/extending_openapi/tutorial001.py hl[2,15:21] *} ### Modify the OpenAPI schema
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 22:39:38 UTC 2024 - 3.1K bytes - Viewed (0) -
docs/fr/docs/tutorial/background-tasks.md
{* ../../docs_src/background_tasks/tutorial001.py hl[6:9] *} ## Ajouter une tâche d'arrière-plan Dans votre *fonction de chemin*, passez votre fonction de tâche à l'objet de type `BackgroundTasks` (`background_tasks` ici) grâce à la méthode `.add_task()` : {* ../../docs_src/background_tasks/tutorial001.py hl[14] *} `.add_task()` reçoit comme arguments :
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Oct 28 10:29:51 UTC 2024 - 5.6K bytes - Viewed (0) -
docs/ru/docs/tutorial/security/first-steps.md
```Python {!> ../../docs_src/security/tutorial001_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python {!> ../../docs_src/security/tutorial001_an.py!} ``` //// //// tab | Python 3.8+ без Annotated /// tip | "Подсказка" Предпочтительнее использовать версию с аннотацией, если это возможно. /// ```Python {!> ../../docs_src/security/tutorial001.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.4K bytes - Viewed (0) -
docs/pt/docs/how-to/custom-request-and-route.md
```Python hl_lines="13 15" {!../../docs_src/custom_request_and_route/tutorial002.py!} ``` Se uma exceção ocorrer, a instância `Request` ainda estará em escopo, então podemos ler e fazer uso do corpo da requisição ao lidar com o erro: ```Python hl_lines="16-18" {!../../docs_src/custom_request_and_route/tutorial002.py!} ``` ## Classe `APIRoute` personalizada em um router
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 22 17:33:00 UTC 2024 - 4.9K bytes - Viewed (0)