- Sort Score
- Num 10 results
- Language All
Results 141 - 150 of 892 for Item (0.74 seconds)
-
fastapi/.agents/skills/fastapi/references/streaming.md
from fastapi.sse import EventSourceResponse from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float @app.get("/items/stream", response_class=EventSourceResponse) async def stream_items() -> AsyncIterable[Item]: yield Item(name="Plumbus", price=32.99) yield Item(name="Portal Gun", price=999.99) ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 2.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/dict/stopwords/StopwordsItem.java
return input; } /** * Checks if the item has been updated. * * @return true if the item has been updated, false otherwise. */ public boolean isUpdated() { return newInput != null; } /** * Checks if the item has been marked for deletion. * * @return true if the item is marked for deletion, false otherwise. */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 20 07:09:00 GMT 2025 - 3.5K bytes - Click Count (0) -
src/main/webapp/WEB-INF/view/header.jsp
<la:message key="labels.profile" /> </la:link> </c:if> <c:if test="${adminUser == true}"> <la:link href="/admin" styleClass="dropdown-item"> <la:message key="labels.administration" /> </la:link> </c:if> <la:link href="/logout/" styleClass="dropdown-item"> <la:message key="labels.logout" />
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Feb 23 08:03:44 GMT 2026 - 5.1K bytes - Click Count (0) -
src/main/webapp/WEB-INF/orig/view/header.jsp
<la:message key="labels.profile" /> </la:link> </c:if> <c:if test="${adminUser == true}"> <la:link href="/admin" styleClass="dropdown-item"> <la:message key="labels.administration" /> </la:link> </c:if> <la:link href="/logout/" styleClass="dropdown-item"> <la:message key="labels.logout" />
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Feb 23 08:03:44 GMT 2026 - 5.1K bytes - Click Count (0) -
docs/zh/docs/tutorial/body-multiple-params.md
/// ## 嵌入单个请求体参数 { #embed-a-single-body-parameter } 假设你只有一个来自 Pydantic 模型 `Item` 的请求体参数 `item`。 默认情况下,**FastAPI** 将直接期望这样的请求体。 但是,如果你希望它期望一个拥有 `item` 键并在值中包含模型内容的 JSON,就像在声明额外的请求体参数时所做的那样,则可以使用一个特殊的 `Body` 参数 `embed`: ```Python item: Item = Body(embed=True) ``` 比如: {* ../../docs_src/body_multiple_params/tutorial005_an_py310.py hl[17] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 4.9K bytes - Click Count (0) -
tests/test_tutorial/test_body_nested_models/test_tutorial001_tutorial002_tutorial003.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 8.5K bytes - Click Count (0) -
docs_src/additional_responses/tutorial001_py310.py
from fastapi import FastAPI from fastapi.responses import JSONResponse from pydantic import BaseModel class Item(BaseModel): id: str value: str class Message(BaseModel): message: str app = FastAPI() @app.get("/items/{item_id}", response_model=Item, responses={404: {"model": Message}}) async def read_item(item_id: str): if item_id == "foo":Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 506 bytes - Click Count (0) -
docs_src/generate_clients/tutorial002_py310.py
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float class ResponseMessage(BaseModel): message: str class User(BaseModel): username: str email: str @app.post("/items/", response_model=ResponseMessage, tags=["items"]) async def create_item(item: Item): return {"message": "Item received"}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 730 bytes - Click Count (0) -
docs_src/additional_responses/tutorial003_py310.py
from pydantic import BaseModel class Item(BaseModel): id: str value: str class Message(BaseModel): message: str app = FastAPI() @app.get( "/items/{item_id}", response_model=Item, responses={ 404: {"model": Message, "description": "The item was not found"}, 200: { "description": "Item requested by ID", "content": {Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 837 bytes - Click Count (0) -
.ci/scripts/packaging-test.ps1
$env:JAVA_TOOL_OPTIONS='' $ErrorActionPreference="Stop" $gradleInit = "C:\Users\$env:username\.gradle\init.d\" echo "Remove $gradleInit" Remove-Item -Recurse -Force $gradleInit -ErrorAction Ignore New-Item -ItemType directory -Path $gradleInit echo "Copy .ci/init.gradle to $gradleInit" Copy-Item .ci/init.gradle -Destination $gradleInit [Environment]::SetEnvironmentVariable("JAVA_HOME", $null, "Machine")
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 15 22:00:26 GMT 2021 - 1.3K bytes - Click Count (0)