- Sort Score
- Num 10 results
- Language All
Results 231 - 240 of 1,014 for iter (0.02 seconds)
-
docs_src/body_multiple_params/tutorial003_py310.py
app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None class User(BaseModel): username: str full_name: str | None = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item, user: User, importance: int = Body()): results = {"item_id": item_id, "item": item, "user": user, "importance": importance}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 504 bytes - Click Count (0) -
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) -
tests/test_tutorial/test_additional_responses/test_tutorial004.py
"paths": { "/items/{item_id}": { "get": { "responses": { "404": {"description": "Item not found"}, "302": {"description": "The item was moved"}, "403": {"description": "Not enough privileges"}, "200": {
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 10:53:47 GMT 2026 - 5.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/resources/fess_message_it.properties
constraints.URL.message = {item} non è un URL valido. constraints.Required.message = {item} è richiesto. constraints.TypeInteger.message = {item} deve essere un numero. constraints.TypeLong.message = {item} deve essere un numero. constraints.TypeFloat.message = {item} deve essere un numero. constraints.TypeDouble.message = {item} deve essere un numero. constraints.TypeAny.message = {item} non può essere convertito in {propertyType}.Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 13.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/index/writer/SuggestIndexWriter.java
} for (final SuggestItem item : mergedItems) { final GetResponse getResponse = client.prepareGet().setIndex(index).setId(item.getId()).get(settings.getIndexTimeout()); if (update && getResponse.isExists()) { final IndexRequestBuilder indexRequestBuilder = new IndexRequestBuilder(client, IndexAction.INSTANCE, index); indexRequestBuilder.setId(item.getId())Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Thu Nov 20 08:32:33 GMT 2025 - 4.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/service/CharMappingService.java
* Retrieves a specific character mapping item by its ID from the specified dictionary. * <p> * This method looks up a character mapping item using its unique identifier * within the context of the specified dictionary. * </p> * * @param dictId the dictionary ID containing the character mapping item * @param id the unique identifier of the character mapping itemCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 6.1K bytes - Click Count (0) -
docs/ko/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) ``` 다음과 같이요:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:57:01 GMT 2026 - 5.5K 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) -
src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java
charMappingFile.insert(newItem); // Verify the item was added PagingList<CharMappingItem> result = charMappingFile.selectList(0, 10); assertEquals(2, result.size()); // Check if new item exists boolean found = false; for (CharMappingItem item : result) { if (item.getOutput().equals("z")) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 18.9K bytes - Click Count (0)