- Sort Score
- Result 10 results
- Languages All
Results 571 - 580 of 834 for ITEM (0.03 sec)
-
docs_src/dependencies/tutorial008d.py
raise InternalError( f"The portal gun is too dangerous to be owned by {username}" ) if item_id != "plumbus": raise HTTPException( status_code=404, detail="Item not found, there's only a plumbus here" )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 694 bytes - Viewed (0) -
istioctl/pkg/writer/compare/sds/writer_test.go
format: TABULAR, items: []SecretItem{}, expected: []string{}, unexpected: secretItemColumns, }, { name: "test tabular output with a single secret item", format: TABULAR, items: []SecretItem{ { Name: "olinger", Data: "certdata", Source: "source", Destination: "destination", SecretMeta: SecretMeta{
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri May 29 20:42:01 UTC 2020 - 4.9K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008d_an.py
return client def test_get_no_item(client: TestClient): response = client.get("/items/foo") assert response.status_code == 404, response.text assert response.json() == {"detail": "Item not found, there's only a plumbus here"} def test_get(client: TestClient): response = client.get("/items/plumbus") assert response.status_code == 200, response.text assert response.json() == "plumbus"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 1.2K bytes - Viewed (0) -
docs_src/dependencies/tutorial008d_an.py
raise InternalError( f"The portal gun is too dangerous to be owned by {username}" ) if item_id != "plumbus": raise HTTPException( status_code=404, detail="Item not found, there's only a plumbus here" )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 744 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial010_an.py
from fastapi import FastAPI, Query from typing_extensions import Annotated app = FastAPI() @app.get("/items/") async def read_items( q: Annotated[ Union[str, None], Query( alias="item-query", title="Query string", description="Query string for the items to search in the database that have a good match", min_length=3, max_length=50,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 24 20:26:06 UTC 2023 - 664 bytes - Viewed (0) -
docs/de/docs/tutorial/body.md
* Ihnen die erhaltenen Daten im Parameter `item` übergeben. * Da Sie diesen in der Funktion als vom Typ `Item` deklariert haben, erhalten Sie die ganze Editor-Unterstützung (Autovervollständigung, usw.) für alle Attribute und deren Typen.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8K bytes - Viewed (0) -
docs/zh/docs/tutorial/body.md
```Python hl_lines="18" {!> ../../docs_src/body/tutorial001.py!} ``` //// ……此处,请求体参数的类型为 `Item` 模型。 ## 结论 仅使用 Python 类型声明,**FastAPI** 就可以: * 以 JSON 形式读取请求体 * (在必要时)把请求体转换为对应的类型 * 校验数据: * 数据无效时返回错误信息,并指出错误数据的确切位置和内容 * 把接收的数据赋值给参数 `item` * 把函数中请求体参数的类型声明为 `Item`,还能获得代码补全等编辑器支持 * 为模型生成 <a href="https://json-schema.org" class="external-link" target="_blank">JSON Schema</a>,在项目中所需的位置使用
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.4K bytes - Viewed (0) -
docs/pt/docs/tutorial/body.md
* Entregar a você a informação recebida no parâmetro `item`. * Como você o declarou na função como do tipo `Item`, você também terá o suporte do editor (completação, etc) para todos os atributos e seus tipos.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.1K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt
override fun describeTo(description: Description) { description.appendText("JDK with version from $version") } override fun matchesSafely(item: PlatformVersion): Boolean { return item.majorVersion >= version } } } fun onMajor(version: Int): Matcher<PlatformVersion> { return object : TypeSafeMatcher<PlatformVersion>() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 15.3K bytes - Viewed (1) -
tests/test_additional_response_extra.py
"description": "Successful Response", "content": {"application/json": {"schema": {}}}, } }, "summary": "Read Item", "operationId": "read_item_items__get", } } },
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.2K bytes - Viewed (0)