- Sort Score
- Result 10 results
- Languages All
Results 861 - 870 of 1,838 for inf2 (0.03 sec)
-
docs/zh/docs/advanced/custom-response.md
导入你想要使用的 `Response` 类(子类)然后在 *路径操作装饰器* 中声明它。 ```Python hl_lines="2 7" {!../../docs_src/custom_response/tutorial001b.py!} ``` /// info | "提示" 参数 `response_class` 也会用来定义响应的「媒体类型」。 在这个例子中,HTTP 头的 `Content-Type` 会被设置成 `application/json`。 并且在 OpenAPI 文档中也会这样记录。 /// /// tip | "小贴士"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.7K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003_01.py
} def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/user/": { "post": { "summary": "Create User", "operationId": "create_user_user__post",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 04 20:47:07 UTC 2023 - 5.6K bytes - Viewed (0) -
tests/test_tutorial/test_additional_responses/test_tutorial004.py
def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/items/{item_id}": { "get": { "responses": { "404": {"description": "Item not found"},
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 4.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/tomcat/webresources/FessWebResourceRoot.java
super(context); } @Override protected void processWebInfLib() throws LifecycleException { super.processWebInfLib(); final WebResource[] possibleJars = listResources("/WEB-INF/plugin", false); for (final WebResource possibleJar : possibleJars) { if (possibleJar.isFile() && possibleJar.getName().endsWith(".jar")) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2.5K bytes - Viewed (0) -
docs/pt/docs/tutorial/testing.md
Com ele, você pode usar o <a href="https://docs.pytest.org/" class="external-link" target="_blank">pytest</a> diretamente com **FastAPI**. ## Usando `TestClient` /// info | "Informação" Para usar o `TestClient`, primeiro instale o <a href="https://www.python-httpx.org" class="external-link" target="_blank">`httpx`</a>.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.9K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial001_an.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.9K bytes - Viewed (0) -
docs/ja/docs/index.md
### 実行 以下のコマンドでサーバーを起動します: <div class="termy"> ```console $ uvicorn main:app --reload INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) INFO: Started reloader process [28720] INFO: Started server process [28722] INFO: Waiting for application startup. INFO: Application startup complete. ``` </div> <details markdown="1">
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 21K bytes - Viewed (0) -
docs/en/docs/tutorial/request-files.md
# Request Files You can define files to be uploaded by the client using `File`. /// info To receive uploaded files, first install <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>. Make sure you create a [virtual environment](../virtual-environments.md){.internal-link target=_blank}, activate it, and then install it, for example: ```console $ pip install python-multipart ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.2K bytes - Viewed (0) -
docs/ko/docs/tutorial/response-model.md
```JSON { "name": "Foo", "price": 50.2 } ``` /// info | "정보" FastAPI는 이를 위해 Pydantic 모델의 `.dict()`의 <a href="https://docs.pydantic.dev/latest/concepts/serialization/#modeldict" class="external-link" target="_blank"> `exclude_unset` 매개변수</a>를 사용합니다. /// /// info | "정보" 아래 또한 사용할 수 있습니다: * `response_model_exclude_defaults=True`
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.1K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt
val v2Jar = v2.tasks.named("jar") val newUpgradedPropertiesFile = layout.buildDirectory.file("gradle-api-info/new-upgraded-properties.json") val oldUpgradedPropertiesFile = layout.buildDirectory.file("gradle-api-info/old-upgraded-properties.json") val extractGradleApiInfo = tasks.register<ExtractGradleApiInfoTask>("extractGradleApiInfo") {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 16.4K bytes - Viewed (0)