- Sort Score
- Num 10 results
- Language All
Results 341 - 350 of 1,062 for python (0.05 seconds)
-
docs/en/docs/how-to/configure-swagger-ui.md
```JavaScript presets: [ SwaggerUIBundle.presets.apis, SwaggerUIBundle.SwaggerUIStandalonePreset ] ``` These are **JavaScript** objects, not strings, so you can't pass them from Python code directly.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 2.8K bytes - Click Count (0) -
docs/zh/docs/advanced/openapi-callbacks.md
/// 此处唯一比较新的内容是*路径操作装饰器*中的 `callbacks=invoices_callback_router.routes` 参数,下文介绍。 ## 存档回调 { #documenting-the-callback } 实际的回调代码高度依赖于您自己的 API 应用。 并且可能每个应用都各不相同。 回调代码可能只有一两行,比如: ```Python callback_url = "https://example.com/api/v1/invoices/events/" httpx.post(callback_url, json={"description": "Invoice paid", "paid": True}) ``` 但回调最重要的部分可能是,根据 API 要发送给回调请求体的数据等内容,确保您的 API 用户(外部开发者)正确地实现*外部 API*。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 6.6K bytes - Click Count (0) -
docs/en/docs/reference/responses.md
Read more about it in the [FastAPI docs for Custom Response - HTML, Stream, File, others](https://fastapi.tiangolo.com/advanced/custom-response/). You can import them directly from `fastapi.responses`: ```python from fastapi.responses import ( FileResponse, HTMLResponse, JSONResponse, ORJSONResponse, PlainTextResponse, RedirectResponse, Response, StreamingResponse,
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 22 16:34:59 GMT 2026 - 4.4K bytes - Click Count (0) -
docs/ja/docs/tutorial/handling-errors.md
{* ../../docs_src/handling_errors/tutorial001_py310.py hl[1] *} ### コード内での`HTTPException`の発生 { #raise-an-httpexception-in-your-code } `HTTPException`は通常のPythonの例外であり、APIに関連するデータを追加したものです。 Pythonの例外なので、`return`ではなく、`raise`です。 これはまた、*path operation関数*の内部で呼び出しているユーティリティ関数の内部から`HTTPException`を発生させた場合、*path operation関数*の残りのコードは実行されず、そのリクエストを直ちに終了させ、`HTTPException`からのHTTPエラーをクライアントに送信することを意味します。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 11.2K bytes - Click Count (0) -
.github/workflows/codeql-analysis.yml
strategy: fail-fast: false matrix: # Override automatic language detection by changing the below list # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python'] language: ['java', 'javascript'] # Learn more... # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detectionCreated: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Dec 11 22:12:03 GMT 2025 - 4K bytes - Click Count (0) -
docs/zh-hant/docs/how-to/configure-swagger-ui.md
FastAPI 也包含以下僅限 JavaScript 的 `presets` 設定: ```JavaScript presets: [ SwaggerUIBundle.presets.apis, SwaggerUIBundle.SwaggerUIStandalonePreset ] ``` 這些是 JavaScript 物件,而不是字串,因此無法直接從 Python 程式碼傳遞。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 2.7K bytes - Click Count (0) -
docs/zh/docs/advanced/path-operation-advanced-configuration.md
/// tip 如果你手动调用 `app.openapi()`,你应该在此之前更新 `operationId`。 /// /// warning 如果你这样做,务必确保你的每个 *路径操作函数* 的名字唯一。 即使它们在不同的模块中(Python 文件)。 /// ## 从 OpenAPI 中排除 { #exclude-from-openapi } 使用参数 `include_in_schema` 并将其设置为 `False`,来从生成的 OpenAPI 方案中排除一个 *路径操作*(这样一来,就从自动化文档系统中排除掉了):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 6.7K bytes - Click Count (0) -
docs/en/docs/advanced/testing-dependencies.md
FastAPI will still be able to override it. /// Then you can reset your overrides (remove them) by setting `app.dependency_overrides` to be an empty `dict`: ```Python app.dependency_overrides = {} ``` /// tip
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Aug 31 09:15:41 GMT 2025 - 2.4K bytes - Click Count (0) -
docs/ja/docs/tutorial/body-multiple-params.md
繰り返しになりますが、データ型の変換、検証、文書化などを行います。 ## 複数のボディパラメータとクエリ { #multiple-body-params-and-query } もちろん、ボディパラメータに加えて、必要に応じて追加のクエリパラメータを宣言することもできます。 デフォルトでは、単数値はクエリパラメータとして解釈されるので、明示的に `Query` を追加する必要はなく、次のようにできます: ```Python q: str | None = None ``` 例えば: {* ../../docs_src/body_multiple_params/tutorial004_an_py310.py hl[28] *} /// info | 情報 `Body`もまた、後述する `Query` や `Path` などと同様に、すべての追加検証パラメータとメタデータパラメータを持っています。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 15:24:30 GMT 2026 - 5.9K bytes - Click Count (0) -
docs/en/docs/tutorial/middleware.md
{* ../../docs_src/middleware/tutorial001_py310.py hl[10,12:13] *} /// tip Here we use [`time.perf_counter()`](https://docs.python.org/3/library/time.html#time.perf_counter) instead of `time.time()` because it can be more precise for these use cases. 🤓 /// ## Multiple middleware execution order { #multiple-middleware-execution-order }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 3.9K bytes - Click Count (0)