- Sort Score
- Num 10 results
- Language All
Results 1371 - 1380 of 1,487 for apps (0.02 seconds)
-
tests/test_path.py
from fastapi.testclient import TestClient from .main import app client = TestClient(app) def test_text_get(): response = client.get("/text") assert response.status_code == 200, response.text assert response.json() == "Hello World" def test_nonexistent(): response = client.get("/nonexistent") assert response.status_code == 404, response.text assert response.json() == {"detail": "Not Found"}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 20.5K bytes - Click Count (2) -
docs/de/llm-prompt.md
* «the response» (what the server sends back to the client): «die Response» * «the return type»: «der Rückgabetyp» * «the return value»: «der Rückgabewert» * «the startup» (the event of the app): «der Startup» * «the shutdown» (the event of the app): «der Shutdown» * «the startup event»: «das Startup-Event» * «the shutdown event»: «das Shutdown-Event» * «the startup» (of the server): «das Hochfahren»
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 09:39:53 GMT 2025 - 11.9K bytes - Click Count (0) -
.teamcity/src/main/kotlin/projects/StageProject.kt
"API Compatibility Report", "$HIDDEN_ARTIFACT_DESTINATION/report-architecture-test-binary-compatibility-report.html", ) buildReportTab("Incubating APIs Report", "incubation-reports/all-incubating.html") } if (stage.performanceTests.isNotEmpty()) { buildReportTab("Performance", "performance-test-results.zip!report/index.html") }
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Oct 16 00:34:25 GMT 2025 - 12.1K bytes - Click Count (0) -
docs/ja/docs/advanced/path-operation-advanced-configuration.md
そうする場合は、すべての *path operation* を追加した後に行う必要があります。 {* ../../docs_src/path_operation_advanced_configuration/tutorial002.py hl[2,12:21,24] *} /// tip | 豆知識 `app.openapi()` を手動でコールする場合、その前に`operationId`を更新する必要があります。 /// /// warning | 注意 この方法をとる場合、各 *path operation関数* が一意な名前である必要があります。 それらが異なるモジュール (Pythonファイル) にあるとしてもです。 /// ## OpenAPIから除外するCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 2.2K bytes - Click Count (0) -
docs/zh/docs/advanced/sub-applications.md
### 子应用 接下来,创建子应用及其*路径操作*。 子应用只是另一个标准 FastAPI 应用,但这个应用是被**挂载**的应用: {* ../../docs_src/sub_applications/tutorial001.py hl[11,14:16] *} ### 挂载子应用 在顶层应用 `app` 中,挂载子应用 `subapi`。 本例的子应用挂载在 `/subapi` 路径下: {* ../../docs_src/sub_applications/tutorial001.py hl[11,19] *} ### 查看文档 如果主文件是 `main.py`,则用以下 `uvicorn` 命令运行主应用: <div class="termy"> ```consoleCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 2.4K bytes - Click Count (0) -
tests/test_tutorial/test_body_nested_models/test_tutorial006.py
], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.body_nested_models.{request.param}") client = TestClient(mod.app) return client def test_put_all(client: TestClient): response = client.put( "/items/123", json={ "name": "Foo", "description": "A very nice Item",
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 8.7K bytes - Click Count (0) -
docs/de/docs/advanced/sub-applications.md
{* ../../docs_src/sub_applications/tutorial001_py39.py hl[11, 14:16] *} ### Die Unteranwendung mounten { #mount-the-sub-application } Mounten Sie in Ihrer Top-Level-Anwendung `app` die Unteranwendung `subapi`. In diesem Fall wird sie im Pfad `/subapi` gemountet: {* ../../docs_src/sub_applications/tutorial001_py39.py hl[11, 19] *}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 3.4K bytes - Click Count (0) -
docs/en/docs/how-to/extending-openapi.md
* `description`: The description of your API, this can include markdown and will be shown in the docs. * `routes`: A list of routes, these are each of the registered *path operations*. They are taken from `app.routes`. /// info The parameter `summary` is available in OpenAPI 3.1.0 and above, supported by FastAPI 0.99.0 and above. /// ## Overriding the defaults { #overriding-the-defaults }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 3.4K bytes - Click Count (0) -
tests/test_application.py
import pytest from fastapi.testclient import TestClient from .main import app client = TestClient(app) @pytest.mark.parametrize( "path,expected_status,expected_response", [ ("/api_route", 200, {"message": "Hello World"}), ("/non_decorated_route", 200, {"message": "Hello World"}), ("/nonexistent", 404, {"detail": "Not Found"}), ], ) def test_get_path(path, expected_status, expected_response):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 51.9K bytes - Click Count (0) -
docs/es/docs/tutorial/background-tasks.md
Pero si necesitas acceder a variables y objetos de la misma app de **FastAPI**, o necesitas realizar pequeñas tareas en segundo plano (como enviar una notificación por email), simplemente puedes usar `BackgroundTasks`. ## Resumen { #recap }
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 5.1K bytes - Click Count (0)